Random number within a specified range.

Bageshkumarbagi
Posted by Bageshkumarbagi under C# category on | Points: 40 | Views : 594
private void button1_Click(object sender, EventArgs e)
{
Random rnd = new Random();
MessageBox.Show(rnd.Next(-100, 101).ToString());

}

Comments or Responses

Login to post response