Computer Science, asked by bhagyak123455, 7 months ago

What is the range of possible values for the variable x?

int x = (int)(Math.random() * 10);

Answers

Answered by kjjio
3

Answer:

int number = (int)(Math. random() * 10); By multiplying the value by 10, the range of possible values becomes 0.0 <= number < 10.0.

Explanation:

please mark me as BRAINLIEST

Similar questions