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

What is the abiotic of a zebra?
Sodium chloride or table salt is a compound formed when sodium loses its valence electron to chlorine. Which type of bond formation takes place in sodium chlori
Why are nutrients from fertilizer harmful to aquatic ecosystems?
What does Mesopotamia mean?
What does 10/12 equal to?
To store his art supplies, Kyle buys a cube-shapped box with 8-inches sides. His longest paintbrush is 13.5 inches long. Explain how kyle determined that the 13
simplify 7b-2b+3b+4b
Use properties to find the sum or product 34+0+18+26
What can I describe in a haunted, scary forest?
Exports of tin and silver were the mainstays of the _______ economy for many decades. However, today, as the market for tin has declined, the country has become