Class BitStringFactory

    • Constructor Detail

      • BitStringFactory

        public BitStringFactory​(int length)
        Parameters:
        length - The length of all bit strings created by this factory.
    • Method Detail

      • generateRandomCandidate

        public BitString generateRandomCandidate​(Random rng)
        Generates a random bit string, with a uniform distribution of ones and zeroes.
        Parameters:
        rng - The source of randomness for setting the bits.
        Returns:
        A random bit string of the length configured for this factory.