dev.kanngard.net make sure you visit my new blog at: johankanngard.net

Short tip: NumberUtils class in Java

by Johan Känngård / [Java] / 2003-03-10 / #63


This class contains only one method, random(int low, int high), that generates a random number between the specified low and high. In JDK 1.2, there is a built in method for this in the java.util.Random class, but not in 1.1.8...



Floppy icon NumberUtils.java2 Kb