An explanantion about random number generators. Answer Generating random numbers is simple. Provided as part of the java.util package, the Random class makes it easy to generate numbers. The method for obtaining a certain distribution is by direct transformation. The last applets are for graphing the different distribution for visual comparison of the histograms.
Random numbers are useful in many contexts in programming.
One common use is in games, and another is for testing program algorithms such as those used in searching or sorting. Here you have an explanation about creating random numbers in Java. The randomX package for Java - The randomX package is an upward compatible superset of the standard Java API class java.util.Random. Unlike the standard Random class, randomX defines an abstract superclass which supports derived classes based on a variety of random and pseudorandom byte stream generators. Inc. All rights reserved.