public void Seed() { Random rand = new Random(); int i = 0; while (i < Settings.Settings.GridSeedCount) { int x = rand.Next(0, MatrixWidth); int y = rand.Next(0, MatrixHeight); string key = Keys.ConvertToKey(new Point(x, y)); if (!Cell.Cells.ContainsKey(key)) { Cell cell = new Cell(x, y); } i++; } }