public static IntStream indexes(
		final RandomGenerator random,
		final int n,
		final double p
	) {
		return indexes(random, 0, n, p);
	}
Create an {@code IntStream} which creates random indexes within the
given range and the index probability.

@since 3.0

@param random the random engine used for calculating the random
       indexes
@param n the end index (exclusively). The start index is zero.
@param p the index selection probability
@return a new random index stream
@throws IllegalArgumentException if {@code p} is not a
        valid probability.
@throws NullPointerException if the given {@code random}
        engine is {@code null}.
jenetics/src/main/java/io/jenetics/internal/math/Randoms.java