I am trying to generate a random number when I click a button. But when I do I will get the same numbers at times. When I click the button it also will hide a label. When I click on buttons there should be no labels left. Image
private static Random rnd = new Random();
randomNumber = rnd.Next(0, 25);
How can I prevent it from using the same number more then once until the program is closed/restarted?