Class XORShiftRandomUtils

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

public final class XORShiftRandomUtils extends 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 Details

    • XORShiftRandomUtils

      public XORShiftRandomUtils()
  • Method Details

    • nextLong

      public static long nextLong(long prev)
    • main

      public static void main(String[] argv)