Module m3DCS

Interface Seedable

All Known Subinterfaces:
ContinuousGenerator, DiscreteGenerator
All Known Implementing Classes:
RandomGenerator, SeedGenerator

public interface Seedable
represents classes which has a seed
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the random number generator's seed.
    void
    Get another seed well-spaced (from the default SeedGenerator)
    void
    setSeed(long seed)
    Set the random number generator's seed.
  • Method Details

    • setSeed

      void setSeed(long seed)
      Set the random number generator's seed.
      Parameters:
      seed - The new seed for the generator
    • getSeed

      long getSeed()
      Get the random number generator's seed.
      Returns:
      The generator's seed
    • reseed

      void reseed()
      Get another seed well-spaced (from the default SeedGenerator)