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

You are sent back into the past by accident without a way back. In what time period would you be stuck? Would you be able to adapt to the time? How would you ge
Write an equation that represents the line use exact numbers
(HELP) What is the length of xy in xyz?
Mya is redecorating her bedroom. The room is in the shape of right rectangular prism. The dimensions of the room are: 12 feet in length by 14 feet in width by 8
2. Write a recursive formula for the sequence 5, 18, 31, 44, 57, ... Then find the next term.
(07.05 MC)A polynomial function can be written as (2x + 5)(x + 3)(x − 1). What are the zeros of this function? (1 point)Group of answer choicesA. x= -1, -5/2 ,3
Why was James madison the defendant in the case?
All clouds form due to the warm, moist air __________ then getting to cooler elevations and cooling.
WILL MARK BRAINLIEST Rewrite the equation in Ax+By=C form. Use integers for A, B, and C. y-6= -5(x-3)
Please help with my geometry