summaryrefslogtreecommitdiff
path: root/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java
diff options
context:
space:
mode:
Diffstat (limited to 'nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java')
-rw-r--r--nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java
index 549d9e14c89d..448ae01d9d64 100644
--- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java
+++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/RandomGenerator.java
@@ -53,17 +53,6 @@ public static double doubleRangeRandom(double lowLimit,double upLimit){
- private static int[] randomSelection(int[] totalIndices, int times) {
- if (times>=totalIndices.length) {
- return totalIndices;
- }
- int[] indices = randomSelection(totalIndices.length, times);
- for(int i=0; i<indices.length; i++) {
- indices[i] = totalIndices[indices[i]];
- }
- return indices;
- }
-
public static int[] randomSelection(int maxNum, int times) {
if(times<=0) return new int[0];
int realTimes = Math.min(maxNum, times);