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

I NEED HELP ASAP!!!!!!!Which half-reaction correctly describes an oxidation?
What conclusion can be drawn about Okonkwo being upset? A. Okonkwo is upset that Nwoye has joined the missionaries because he thinks that proves that Nwoye is w
You are riding your bike and notice the square sign above. You mentally draw a straight line from point A to C. Describe the angle relationship between ∠DCA and
what is 3× + 4 (× +2) +4y​
Need help with biology homework
How many of the following atomic particles does a neutral magnesium atom have if atomic number is 12, and mass is 24.3050 ? Protons- Neutrons- Electrons-
The chromosomes of bacteria
What is (f⋅g)(x)? f(x)=x^2−3x+2 g(x)=x^3−8 Enter your answer, in standard form, in the box. (f⋅g)(x)=
What is the best approximation for the circumference of a circle with a radius of 125 m? Use 3.14 to approximate pi. A. 392.5 m B. 785 m C. 1570 m D.
How did the free enterprise system affect factory owners? A. It helped factory owners follow the laws of the US government and run honest businesses. B. Factory