3.1k views
1 vote
What is the largest value that can be obtained from (int)(Math.random() * 100)?

1) 0
2) 99
3) 100
4) cannot be determined

User Fanick
by
8.2k points

1 Answer

3 votes

Final answer:

The largest value that can be obtained from (int)(Math.random() * 100) is 99.

Step-by-step explanation:

The largest value that can be obtained from (int)(Math.random() * 100) is 99.

User Matthew Purdon
by
8.5k points