1. Generate a random number:
Random rnd = new Random();
intRandomNumber = rnd.Next();
rnd =null;
2. Generate a random number between a range(1 to 4)
Random rnd = new Random();
intRandomNumber = rnd.Next(1,5);
rnd =null;
Random rnd = new Random();
intRandomNumber = rnd.Next();
rnd =null;
2. Generate a random number between a range(1 to 4)
Random rnd = new Random();
intRandomNumber = rnd.Next(1,5);
rnd =null;