Java acak ganda antara 0 dan 1

Random r = new Random();
double randomValue = r.nextDouble(); // returns double between 0 and 1
PeruTilli