public static IntegerChromosome of(
		final IntRange range,
		final IntRange lengthRange
	) {
		return of(range.min(), range.max(), lengthRange);
	}
Create a new random chromosome.

@since 4.0

@param range the integer range of the chromosome.
@param lengthRange the allowed length range of the chromosome.
@return a new {@code IntegerChromosome} with the given parameter
@throws IllegalArgumentException if the length of the gene sequence is
        empty, doesn't match with the allowed length range, the minimum
        or maximum of the range is smaller or equal zero, or the given
        range size is zero.
@throws NullPointerException if the given {@code lengthRange} is
        {@code null}
@throws IllegalArgumentException if {@code max} is greater than
        or equal to {@code min}
jenetics/src/main/java/io/jenetics/IntegerChromosome.java