What is the range of possible values for the variable x?
int x = (int)(Math.random() * 10);
Answers
Answered by
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
Computer Science,
3 months ago
Social Sciences,
3 months ago
Social Sciences,
3 months ago
English,
7 months ago
History,
7 months ago
English,
11 months ago