We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff48c1 commit 9270541Copy full SHA for 9270541
jpx/src/test/java/io/jenetics/jpx/WayPointTest.java
@@ -93,9 +93,9 @@ public static WayPoint nextWayPoint(final Random random) {
93
}
94
95
private static double nextDouble(final RandomGenerator random) {
96
- //final int scale = 10_000;
97
- //return random.nextInt(scale)/(double)scale;
98
- return random.nextDouble();
+ final int scale = 1_000_000;
+ return random.nextInt(scale)/(double)scale;
+ //return random.nextDouble();
99
100
101
public static List<WayPoint> nextWayPoints(final Random random) {
0 commit comments