Class Random


  • public final class Random
    extends java.lang.Object
    Faster random implementation which uses the XorShift algorithm
    • Constructor Summary

      Constructors 
      Constructor Description
      Random()  
      Random​(long seed)  
    • Constructor Detail

      • Random

        public Random()
      • Random

        public Random​(long seed)
    • Method Detail

      • reset

        public void reset()
      • nextLong

        public final long nextLong()
      • nextLong

        public final long nextLong​(long range)
      • nextInt

        public final int nextInt()
      • nextInt

        public final int nextInt​(int range)
      • nextDouble

        public final double nextDouble()