Interface RandomProvider.Source

All Superinterfaces:
RandomGenerator
Enclosing interface:
RandomProvider

public static interface RandomProvider.Source extends RandomGenerator
A source of randomness.
  • Method Details

    • setSeed

      void setSeed(long seed)
      Sets the seed for this random source
      Parameters:
      seed - The seed
    • fork

      Returns a forked random source.
      Returns:
      The forked random source
    • consume

      void consume(int n)
      Skips the next n randomly generated numbers.
      Parameters:
      n - The number of generated numbers to skip