public static BitChromosome of(
		final BigInteger value,
		final int length,
		final double p
	) {
		final var array = BitArray.of(value, length);
		return new BitChromosome(array, probability(p));
	}
Create a new {@code BitChromosome} from the given big integer value and
ones' probability.

@param value the value of the created {@code BitChromosome}
@param length length of the BitChromosome
@param p Probability of the TRUEs in the BitChromosome.
@return a new {@code BitChromosome} with the given parameter
@throws NullPointerException if the given {@code value} is {@code null}.
@throws IllegalArgumentException if {@code p} is not a valid probability.
jenetics/src/main/java/io/jenetics/BitChromosome.java