207.179.135.50 writes:
How do i generate random numbers from 0 to 100?
Jo
194.158.187.242 writes:
Math.random()*100
Henk Jan, HJNoot@sum-it.nl
24.1.16.214 writes:
there's also a class, java.util.Random, which has several methods like 'nextInt()' 'nextFloat()' and so forth.
Random pick = new Random();
myPick = Math.abs (pick.nextInt() % 100);
-calyxa