+ 1

The set of values in the output?

Random rand=new Random(); int m=rand.nextInt(3)+rand.nextInt(3); System.out.print(m);

15th Sep 2020, 6:32 PM
Rashmi Jana
2 odpowiedzi
+ 4
dark smoke, phosohor, and a loud voice telling: copy it to playground and find out yourself 😉 100 test should be enough.
15th Sep 2020, 6:36 PM
Oma Falk
Oma Falk - avatar
0
For the output, check in playground.. For any doubt in that specify that clearly...... For rand.nextInt(3) will give you random value between 0 to 3-1
15th Sep 2020, 8:17 PM
Jayakrishna 🇮🇳