Skip to content

Commit d514ead

Browse files
authored
Merge branch 'TheAlgorithms:master' into master
2 parents 4fe7383 + eaf5395 commit d514ead

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Others/MiniMaxAlgorithm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public static int[] getRandomScores(int size, int maxScore) {
9797
int[] randomScores = new int[(int) Math.pow(2, size)];
9898
Random rand = new Random();
9999

100-
for (int a : randomScores) {
101-
a = rand.nextInt(maxScore) + 1;
100+
for (int i = 0; i < randomScores.length; i++) {
101+
randomScores[i] = rand.nextInt(maxScore) + 1;
102102
}
103103

104104
return randomScores;

0 commit comments

Comments
 (0)