I want to generate an unique 4 digit random number. This is the below code what I have tried:
Code for generating random number
//Ge
Random generator = new Random(); string number = generator.Next(1, 10000).ToString("D4");