Does any body know, how to create unique & random 8 digits number? There are methods to create random numbers, but my requirement is to create an unique also it should be a random number with 8 digits. Any idea?
Random rnd = new Random();
int myRandomNo= rnd.Next(10000000, 99999999); // creates a 8 digit random no.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With