Frostbite6038 Frostbite6038
  • 23-12-2022
  • Mathematics
contestada

Which of the following statements assigns a random integer between 1 and 10, inclusive, to rn ?
A int rn = (int) (Math.random()) * 10;
B int rn = (int) (Math.random()) * 10 + 1;
C int rn = (int) (Math.random() * 10);
D int rn = (int) (Math.random() * 10) + 1;
E int rn = (int) (Math.random() + 1) * 10;

Respuesta :

Otras preguntas

what are the kinds of formulas to remember in 8th grade?
In the given figure , if angel ROQ = 90 and angel POS : angel ROS = 4 : 5 , then the value of angel SOQ is
are cockroaches active during the day?
what is a group of snakes called?
What was good abt technology in 1930
in a 4*100m relay race,tota track length is 200m and time taken by one particular group is 50.2sec. ehat is the average speed and average velocity of that group
Approximately 15% of the shirts at windsor and best garment factory are labeled irregular and di not receive the windsor and best label. At this rate how many s
Describe and explain how petrol is separated from the mixture of hydrocarbons in crude oil?
jem boy wants to make his 8-meter square pool into a rectangular one by increasing its length by 2m and decreasing its width by 2m .jem boy asked your expertise
what 3 numbers multiply to get 63?