com.mchange.v2.util
Class XORShiftRandomUtils

java.lang.Object
  extended by com.mchange.v2.util.XORShiftRandomUtils

public final class XORShiftRandomUtils
extends java.lang.Object

A not-cryptographically-strong but decent and very fast pseudorandom number generator. Algorithm can be inlined easily for speed. Algorithm taken from... http://javamex.com/tutorials/random_numbers/xorshift.shtml


Constructor Summary
XORShiftRandomUtils()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
static long nextLong(long prev)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XORShiftRandomUtils

public XORShiftRandomUtils()
Method Detail

nextLong

public static long nextLong(long prev)

main

public static void main(java.lang.String[] argv)