@@ -0,0 +1,1265 @@
+package com.annimon.jecp;%0D%0A%0D%0Aimport java.util.Random;%0D%0A%0D%0A/**%0D%0A *%0D%0A * @author aNNiMON%0D%0A */%0D%0Apublic class JecpRandom %7B%0D%0A    %0D%0A    private static final Random rnd = new Random();%0D%0A    %0D%0A    public static int rand(int to) %7B%0D%0A        return rnd.nextInt(to);%0D%0A    %7D%0D%0A    %0D%0A    public static int rand(int from, int to) %7B%0D%0A        return rnd.nextInt(to - from) + from;%0D%0A    %7D%0D%0A    %0D%0A    public static float rand(float from, float to) %7B%0D%0A        return rnd.nextFloat() * (to - from) + from;%0D%0A    %7D%0D%0A    %0D%0A    public static double rand(double from, double to) %7B%0D%0A        return rnd.nextDouble() * (to - from) + from;%0D%0A    %7D%0D%0A    %0D%0A    public static int randomColor(int from, int to) %7B%0D%0A        if (from %3C 0) from = 0;%0D%0A        else if (from %3E 255) from = 255;%0D%0A        if (to %3C 0) to = 0;%0D%0A        else if (to %3E 255) to = 255;%0D%0A        if (from == to) %7B%0D%0A            return (0xFF000000 %7C (from %3C%3C 16) %7C (from %3C%3C 8) %7C from);%0D%0A        %7D else if (from %3E to) %7B%0D%0A            final int temp = to;%0D%0A            to = from;%0D%0A            from = temp;%0D%0A        %7D%0D%0A        %0D%0A        final int red = rand(from, to);%0D%0A        final int green = rand(from, to);%0D%0A        final int blue = rand(from, to);%0D%0A        %0D%0A        return (0xFF000000 %7C (red %3C%3C 16) %7C (green %3C%3C 8) %7C blue);%0D%0A    %7D%0D%0A%7D%0D%0A

Add JecpRandom