Generate Random Number in c#

Madhu.b.rokkam
Posted by Madhu.b.rokkam under C# category on | Points: 40 | Views : 3448
Random rand = new Random();
Int32 randomNumber = rand.Next();
txtbox.Text= randomNumber.ToString();

Each time this creates a random number in the txtbox

Comments or Responses

Login to post response