p
random
package random
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
class
XORShiftRandom extends Random
XORShiftRandom
XORShiftRandom
copy from spark framework
This class implements a XORShift random number generator algorithm Source: Marsaglia, G. (2003). Xorshift RNGs. Journal of Statistical Software, Vol. 8, Issue 14. http://www.jstatsoft.org/v08/i14/paper This implementation is approximately 3.5 times faster than java.util.Random, partly because of the algorithm, but also due to renouncing thread safety. JDK's implementation uses an AtomicLong seed, this class uses a regular Long. We can forgo thread safety since we use a new instance of the RNG for each thread.
- Version
1.0 23/01/2018 20:08
Value Members
- object XORShiftRandom extends Serializable