public static BitChromosome of(final int length, final double p) {
		return new BitChromosome(BitArray.ofLength(length, p), p);
	}
Constructing a new BitChromosome with the given {@code length} and
randomly set bits. The TRUEs and FALSE in the {@code Chromosome} are
equally distributed with one-probability of {@code p}.

@param length Length of the BitChromosome, number of bits.
@param p Probability of the TRUEs in the BitChromosome.
@return a new {@code BitChromosome} with the given parameter
@throws NegativeArraySizeException if the {@code length} is smaller
        than one.
@throws IllegalArgumentException if {@code p} is not a valid probability.
jenetics/src/main/java/io/jenetics/BitChromosome.java