I want to generate non-repeated random number.
I tried the following code but it generates repeated random number.
protected void Button1_Click(object sender, EventArgs e)
{
Random rnd = new Random();
int n = rnd.Next(1, 100);
Label1.Text = n.ToString ();
}