Question: Question7 -1 10 Write a java statement to generate random number between 0 and 200. (0 excluded, but 200 included). Random rnd = new Random();
Question7 -1 10 Write a java statement to generate random number between 0 and 200. (0 excluded, but 200 included). Random rnd = new Random(); rnd.nextlnt(0,201) Random rnd- new Random0: 2 rnd.nextlnt(0,200) Random rnd = new Random(); rnd.nextlnt(1,201) Random rnd new Random0: 4 rnd.nextint (1,200)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
