Packages

p

random

package random

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. 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

  1. object XORShiftRandom extends Serializable

Ungrouped