|
||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
ThreadLocalRandom | This class is an alternative implementation of java.util.concurrent.ThreadLocalRandom in Java 7. |
TinyMT32 | TinyMT is a pseudo random number generator. |
TinyMT64 | TinyMT64 is a pseudo random number generator. |
Tiny Mersenne Twister in Java.
This package provides Tiny Mersenne Twister (TinyMT) random number generator.
Here are two kinds of TinyMT,
TinyMT32
and TinyMT64
.
TinyMT32 is based on 32-bit calculation, and TinyMT64 is based on 64-bit one.
TinyMTs are parametric generators, which generate distinct sequence for each
parameter.
TinyMTs are defined as subclass of
org.apache.commons.math.random.AbstractRandomGenerator.
Caution: TinyMTs are not synchronized,
not safe when used across threads.
Instead, using one TinyMT object for one thread is recommended.
Actually, ThreadLocalRandom
class is provided for this purpose.
|
||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |