reactfx/src/test/java/org/reactfx/util/FingerTreeTest.java
private static int progressiveInt(Random rnd, int bound) {
        double d = rnd.nextDouble();
        d = d*d*d;
        int i = (int) Math.floor(d * bound);
        return bound - 1 - i;
    }
/**
     * Returns a random int, with higher probability for larger numbers.
     */
Returns a random int, with higher probability for larger numbers.
Returns a random int with higher probability for larger numbers .
private static int progressiveInt(Random rnd, int bound) {
        double d = rnd.nextDouble();
        d = d*d*d;
        int i = (int) Math.floor(d * bound);
        return bound - 1 - i;
    }
private static int progressiveInt ( Random rnd , int bound ) { double d = rnd . nextDouble ( ) ; d = d * d * d ; int i = ( int ) Math . floor ( d * bound ) ; return bound - 1 - i ; }
Returns a random int, with higher probability for larger numbers.
Returns a random int with higher probability for larger numbers .