Creating a Secure Random Number public static float create(byte[] seed) { SecureRandom sr = new SecureRandom(seed); return sr.nextFloat(); }