private void RoundReset() { AssingGridsToPlayers(); // randomize the pool _roundItems = new List <string>(_items); var roundGuid = Guid.NewGuid(); var random = RandomFactory.FromGuid(roundGuid); _roundItems.Shuffle(random); _winners = 0; }
public bool Populate(IEnumerable <string> items) { var random = RandomFactory.FromGuid(GridId); var shuffledList = items.ToList(); shuffledList.Shuffle(random); if (items.Count() < 25) { return(false); } for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { Rows[i].Items[j] = shuffledList[i * 5 + j]; } } return(true); }