public void Clear() { for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { bool State = false; Generation[j, i] = new cCell(State); } } }
public void RND() { Random rnd = new Random(); for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { int iState = rnd.Next() % 2; bool bState = (iState == 1) ? true : false; Generation[j, i] = new cCell(bState); System.Threading.Thread.Sleep(1); } } }