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