Class CellularAutomatonRNG

    • Constructor Detail

      • CellularAutomatonRNG

        public CellularAutomatonRNG()
        Creates a new RNG and seeds it using the default seeding strategy.
      • CellularAutomatonRNG

        public CellularAutomatonRNG​(SeedGenerator seedGenerator)
                             throws SeedException
        Seed the RNG using the provided seed generation strategy.
        Parameters:
        seedGenerator - The seed generation strategy that will provide the seed value for this RNG.
        Throws:
        SeedException - If there is a problem generating a seed.
      • CellularAutomatonRNG

        public CellularAutomatonRNG​(byte[] seed)
        Creates an RNG and seeds it with the specified seed data.
        Parameters:
        seed - The seed data used to initialise the RNG.
    • Method Detail

      • next

        public int next​(int bits)
        Overrides:
        next in class Random
      • getSeed

        public byte[] getSeed()
        Specified by:
        getSeed in interface RepeatableRNG
        Returns:
        The seed data used to initialise this pseudo-random number generator.