View Single Post
  #2 (permalink)  
Old 08-01-2007, 09:32 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Code:
// Use the java.util.Random class Random rand = new Random(); int n = 10 + rand.nextInt(90); // or, use the Math class method int m = (int)(10 + 90*Math.random());
Reply With Quote