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

For what value of x is the rational expression below undefined?(3x-12)/(9-x)
How many degrees in a full rotation?
How do you find displacement when all you have is time with no velocity, and then in order to find velocity you have to have displacement but you don't have tha
What's 6yz+2yz-8yz???? Please help me
What did the Federalists want the Constitution to provide?
The pressure inside the fluid of a hydraulic system is increased by 875 Pa. What is the increase in the force exerted on a piston that has an area of 0.060 m2?
write two inequalities to compare -6 and 7
A short, interesting story related to your subject is called a/an
Landon owns a hybrid SUV that can travel 400 miles on a 15-gallon tank of gas. Determine how many miles he can travel on 6 gallons.
Suppose that the functions s and t are defined for all real numbers x as follows. s(x) = 2x+4 t(x) = 5x Write the expressions for (s+t)(x) and (s-t)(x) and eva