, , 0,95-0,99 10,01-10,04 .
. ints 10 100 . . nextInt ; .
,
Random random = new Random();
return (double) ((random.nextInt(91) + 10) / 10.0);
. , , , , .
, 91. , . ( , 10 - , , 10 → 1,0, 11 → 1,1... 99 → 9,9 100 → 10,0 , )
Random random = new Random();
int[] measure = new int[101];
for (int i = 0; i < 10000; i++) {
int number = (random.nextInt(91) + 10);
measure[number]++;
}
for (int i = 0; i < 101; i++) {
System.out.println(i + " count: " + measure[i]);
}
, 10 100 , .