Answer:
(b) (int)(Math.random() * 101)
Step-by-step explanation:
Given
--- minimum
--- maximum
Required
Java expression to generate random integer between the above interval
The syntax to do this is:
(int)(Math.random((max - min) + 1) + min)
Substitute the values of max and min
(int)(Math.random((100 - 0) + 1) + 0)
Simplify the expression
(int)(Math.random(100 + 1) + 0)
(int)(Math.random(101) + 0)
(int)(Math.random(101))
Hence, the right option is:
(b) (int)(Math.random() * 101)