Class 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
    • 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)  
      • 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)