import java.util.*;
class Random {
public static void main(String[] args) {
int c;
double t = Math.random();
for (c = 0; c <= 10; c++) {
System.out.println(t.nextDouble());
}
}
}
Bez nextDouble() działa, ale wyświetla te same liczby.