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

Explain how making popcorn helps us to understand the percent yield of a chemical reaction. and how does a chemist determine the actual yield of a chemical reac
a stone is thrown upward from ground level with what minimum speed should the stone be thrown so as to reach a height of 9 feet? ***This is a calculus problem N
What scene is depicted in feast in the house of levi?
I was asked to replicate a work of Frida Kahlo for s project.What would be a good title for a copy of the painting "Self-Portrait with Necklace of thorns and Hu
I really need the answer!
Why was the “golden age” of india important?
Does the speedometer of a car read average speed or instantaneous speed? how do you know?
Future value = p × (1 i)t if you save $3,000 at an interest rate of 14 percent per year, how much will you have at the end of six years?
Along the way, sperm journey through the __________ where they are nourished by a nutritious fluid
main points of Roman art