kavyakadhirvelu kavyakadhirvelu
  • 21-09-2020
  • Computers and Technology
contestada

What is the range of possible values for the variable x?

int x = (int)(Math.random() * 10);

Respuesta :

Marinette09
Marinette09 Marinette09
  • 21-09-2020

Answer:

int number = (int)(Math. random() * 10); By multiplying the value by 10, the range of possible values becomes 0.0 <= number < 10.0

please mark me as the brainliest answer and please follow me for more answers.

Answer Link

Otras preguntas

A total of 1010 students are entered in a drawing to win 33 identical prizes. The group of students is composed of 66 boys and 44 girls. What is the probability
A laptop with an intel core i7 microprocessor operates at a speed of 3.4________.
Kate is a 24-year-old woman with asthma. She requests a refill of her albuterol inhaler on November 1st. Kate’s immunization record indicates that she completed
lines a and b are parallel. the slope of line b is 1/3. what is the slope of line a (picture provided)
58% of what is 63.4​
When was Michael Fritz born PLEASE AND THANK YOU!! PLZ ANSWER NEED HELP!!! sorry caps
The product of 7 and a number is at least 30
What were consequences of The Long Walk? Select the two correct answers. A. The Navajo returned to their homeland after the reservation was deemed a failure. B
Can you tell me how to say these sentences in Spanish? 1) I went to the Running of the Bulls in Pamplona, Spain. It was so fun, but it was also very scary! #nev
-4(x+4)=12 solve the equation for x