I'm very new to Java and I do not want to fall behind on this first lab and be subjected to the "Snowball Effect", been working quite relentlessly on this program but I am quite unsure of "seeds" nor how to manipulate the inside of the array for the boolean type.
This is what I have so far. Please and thank you for any/all input.
import java.util.*; public class Life { public static void main(String[] args) { long seed = 0; Random rnd = new Random(seed); } public static void randomiseMatrix(Random rnd, boolean[][] rnMatrix) { for (int i = 1; i < rnMatrix.length - 1; i++) { for (int j = 1; j < rnMatrix[0].length - 1; j++) { rnMatrix[i][j] = rnd.nextBoolean(); } } } }