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

Which type of bond is formed from sharing electrons? A: ionic salts B: covalent molecules C: metallic bonds
Julia, the head executive of fine woolen sweaters, inc., is a committed christian who strongly adheres to the ten commandments. one of julia�s employees is foun
Write a paragraph about your business, how you plan to compete with the other local frozen-yogurt shop, and why your action plan will work. Use what you have l
can u check this please
What sphere of earth did this food originate?
How do you think the temperatures of these two cooking appliances compare?
Who were the leaders of the confederation in the West
What is the slope of this graph A 1/5 B-1/5 C 5 D -5
in the west worked hard to make a success of their family farms a)chinese b)women c)miners d)mercenaries
If ps=6cm and pt=9cm what is pr