
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Random Number Generator import acm.util* RandomGenerator gen; int rand; //if you want two random numbers int rand2; rand2=gen.nextInt(1,50); gen = new Random Generator(); rand=gen.nextInt(1,6); \11, 24, 30, 45, 50 rand =gen.nextIn(5); switch(rand) { case 0: rand=11; break; case 1: rand=24; default: }