public class RandomFloat
extends java.lang.Object
Pseudo-random float generator. Compared with the standard Java class
Random, this class generates generates random floats more quickly and
perhaps more randomly (certainly with greater periodicity).
The uniform generator was
adapted from subroutine uni in "Numerical Methods and Software",
D. Kahaner, C. Moler, S. Nash, Prentice Hall, 1988. This book references,
Marsaglia G., "Comments on the perfect uniform random number generator",
Unpublished notes, Wash S. U. According to the reference, this random
number generator "passes all known tests and has a period that is ...
approximately 10^19".
The normal (Gaussian) generator was
adapted from subroutine rnor in "Numerical Methods and Software", D.
Kahaner, C. Moler, S. Nash, Prentice Hall, 1988. Subroutine rnor,
in turn, is adapted from a paper by Marsaglia G. and Tsang, W. W., 1984,
A fast, easily implemented method for sampling from decreasing or symmetric
unimodal density functions: SIAM J. Sci. Stat. Comput., v. 5, no. 2,
p. 349-359.