Class ConstantSeeder<T extends Seedable>

  • Type Parameters:
    T - the type of the seedable random number generator
    All Implemented Interfaces:
    Iterable<T>

    public class ConstantSeeder<T extends Seedable>
    extends Object
    implements Iterable<T>
    A wrapper that seeds each given seedable random number generator with the given seed(s).
    • Constructor Detail

      • ConstantSeeder

        public ConstantSeeder​(Iterable<T> underlying,
                              long... seeds)
        Constructs a wrapper with the underlying RNGs and the seeds for seeding each RNG.
        Parameters:
        underlying - the underlying RLGs
        seeds - the seeds