Get random number in asp.net C#
using System;
private int GetRandomNumbers()
{
Random objRan = new Random();
int randomNumber = 0;
randomNumber = objRan.Next(10, 99);
return randomNumber;
}
//Output: 24