program
Write a function that generates a random integer between two integers passed as parameters. Build an ASP.NET page which allows you to enter the lower and upper limits, and generates a set of random numbers in that range.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 3, 2015, 2:26 AM
.net is provide build-in class called System.Random, this class can help you to generate random number between two int, double nad byte data...
please refer
https://msdn.microsoft.com/en-us/library/system.random(v=vs.110).aspx
hope this will help you.
Rahul BansalPosted Mar 3, 2015, 12:17 AM
{
Response.Write(GetRandom(100,200).ToString());
}
public int GetRandom(int min, int max)
{
Random r = new Random();
return r.Next(min, max);
}