Answer the question
In order to leave comments, you need to log in
How to fix non-repeating in random c#?
For example:
Random rnd = new Random();
var number = rnd.Next(0, 10);
label1.Text = number.ToString();
In the label, if 5 appears more than 5 is not repeated
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question