public static void rangeCheck(final int from, final int to) {
		if (from > to) {
			throw new IllegalArgumentException(
				"fromIndex(" + from + ") > toIndex(" + to + ")");
		}
		if (from < 0) {
			throw new ArrayIndexOutOfBoundsException(from);
		}
	}
Randomize the {@code array} using the given {@link RandomGenerator}
object. The used shuffling algorithm is from D. Knuth TAOCP, Seminumerical
Algorithms, Third edition, page 142, Algorithm S (Selection sampling
technique).

@param array the array to shuffle
@param random the PRNG
@return the shuffled array
jenetics/src/main/java/io/jenetics/internal/util/Arrays.java