Documentation of 'mikera.util.Random' Java class
Random
mikera.util

Class Random

  • All Implemented Interfaces:
    java.io.Serializable


    public final class Random
    extends java.util.Random
    Implementation of Random class using XORShift RNG Not thread safe: designed for use in single threaded contexts
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Random() 
      Random(long state) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Random clone() 
      boolean equals(java.lang.Object o) 
      boolean equals(Random o) 
      long getSeed() 
      int hashCode() 
      long nextLong() 
      void setSeed(long seed) 
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Random

        public Random()
      • Random

        public Random(long state)
    • Method Detail

      • nextLong

        public long nextLong()
        Overrides:
        nextLong in class java.util.Random
      • setSeed

        public void setSeed(long seed)
        Overrides:
        setSeed in class java.util.Random
      • getSeed

        public long getSeed()
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • clone

        public Random clone()
        Overrides:
        clone in class java.lang.Object
      • equals

        public boolean equals(Random o)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.