Hello,
I want a Windows Phone Silverlight 8.1 code does when you press the button opens the next page randomly (from between the pages in the app) ??
thanks
Hello,
I want a Windows Phone Silverlight 8.1 code does when you press the button opens the next page randomly (from between the pages in the app) ??
thanks
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.
Kashyap DiwanPosted Jul 15, 2015, 4:03 PM
The following code returns a random number:
int num = random.Next();
The following code returns a random number less than 100.
int num = random.Next(100);
The following code returns a random number between min and max:
private int RandomNumber(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}