Class GridRandom

java.lang.Object
java.util.Random
org.apache.ignite.internal.util.GridRandom
All Implemented Interfaces:
Serializable, RandomGenerator

public class GridRandom extends Random
Random to be used from a single thread. Compatible with Random but faster.
See Also:
  • Constructor Details

    • GridRandom

      public GridRandom()
      Default constructor.
    • GridRandom

      public GridRandom(long seed)
      Parameters:
      seed - Seed.
  • Method Details

    • setSeed

      public void setSeed(long seed)
      Overrides:
      setSeed in class Random
    • next

      protected int next(int bits)
      Overrides:
      next in class Random