diff options
Diffstat (limited to 'nlpsolver/ThirdParty/EvolutionarySolver/src/net')
-rw-r--r-- | nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java index 0eb1e2a7eeac..b59b0f8b19ed 100644 --- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java +++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java @@ -36,7 +36,7 @@ public class RandomGenerator { public static int intRangeRandom(int lowLimit, int upLimit) { int num = (int) Math .floor(doubleRangeRandom(lowLimit, upLimit + 1) - 1E-10); - return (num); + return num; } /** @@ -50,7 +50,7 @@ public class RandomGenerator { */ public static double doubleRangeRandom(double lowLimit, double upLimit) { double num = lowLimit + Math.random() * (upLimit - lowLimit); - return (num); + return num; } public static int[] randomSelection(int maxNum, int times) { @@ -87,4 +87,4 @@ public class RandomGenerator { } return indices; } -}
\ No newline at end of file +} |