so i need to write a game of life code i have most of it done but it needs to start with a random pattern, i also need to calculate fill percentage and set it up so that i can see on which cycle is on. i dont know how i could do that ive tried many things but they either give me the wrong calculations and outputs or the program crashes.
i have no idea how to start the code for the problems listed. or rather the ideas i did have were failures. basically i dont know where i should start the random pattern code or how i would write it i have tried doing using srand((time(0)) but im probably missing something and also i cant make the code output which cycle is on if im making sense