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.
Kashyap DiwanRank #6,237 · 272 pointsPosted Jul 15, 2015, 12:03 PM EDT
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); }