4

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?

4

1 回答 1

11
Random rnd = new Random();
int myRandomNo= rnd.Next(10000000, 99999999); // creates a 8 digit random no.
于 2013-02-06T16:36:53.810 回答