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

Can someone tell me how to find this in Amazon I need the name to find it please someone
Was Afghanistan war intervention by the United States justified?
not sure how to solve this :/
Le magasin de chaussures est a cote ___ supermarche. A. au B. des C. de la D. du
Uhh I need help with this question because I'm confused?
What is the volume of a sphere with a diameter of 9.9 cm, rounded to the nearest tenth of a cubic centimeter?
This plant produces cones but not flowers. To which of the following groups does this plant belong? A. mosses B. ferns C. conifers D. horsetails
PLEASE ANSWER ASAP !! TYSMM
Policy makers have been trying to diminish the gender gap in pay for several decades. Let's begin by determining the gender gap in 2004. For both of the maps, m
What type of system of linear equations is this? Y=3x-1 3x+y=-1