Package com.mchange.v2.util
Class XORShiftRandomUtils
java.lang.Object
com.mchange.v2.util.XORShiftRandomUtils
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
-
Method Summary
-
Constructor Details
-
XORShiftRandomUtils
public XORShiftRandomUtils()
-
-
Method Details
-
nextLong
public static long nextLong(long prev) -
main
-