1
0

Fix RandomExt range generation

This commit is contained in:
Victor 2014-03-16 18:50:10 +02:00
parent d826ad974a
commit 2f33036837

View File

@ -21,7 +21,7 @@ public class RandomExt extends Random {
} }
public int rand(int from, int to) { public int rand(int from, int to) {
return nextInt(to - from) + from; return nextInt(to - from + 1) + from;
} }
public double rand(double from, double to) { public double rand(double from, double to) {