Skip to content
Snippets Groups Projects
Commit b46c5736 authored by FERAUD Guillaume's avatar FERAUD Guillaume
Browse files

Update randomGeneration method

parent 82d0af34
Branches master
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ public class Grid implements Iterable<Cell> { ...@@ -172,7 +172,7 @@ public class Grid implements Iterable<Cell> {
*/ */
void randomGeneration(Random random) { void randomGeneration(Random random) {
boolean [][] randomState = new boolean[getNumberOfRows()][getNumberOfColumns()]; boolean [][] randomState = new boolean[numberOfRows][numberOfColumns];
for (int i = 0; i < randomState.length; i++) { for (int i = 0; i < randomState.length; i++) {
Arrays.fill(randomState[i], random.nextBoolean()); Arrays.fill(randomState[i], random.nextBoolean());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment