public static DoubleGene of(final double allele, final DoubleRange range) {
		return of(allele, range.min(), range.max());
	}
Create a new random {@code DoubleGene} with the given value and the
given range. If the {@code value} isn't within the interval
{@code [min, max)}, no exception is thrown. In this case the method
{@link DoubleGene#isValid()} returns {@code false}.

@since 3.2

@param allele the value of the gene
@param range the double range to use
@return a new random {@code DoubleGene}
@throws NullPointerException if the given {@code range} is {@code null}
jenetics/src/main/java/io/jenetics/DoubleGene.java