Package com.mchange.v2.util
Class XORShiftRandomUtils
- java.lang.Object
-
- 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
Constructors Constructor Description XORShiftRandomUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] argv)
static long
nextLong(long prev)
-