Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
i have some pages in window phone 8 sdk in c#. so i want to randomaze these pages when i click a image or a button. please help me urgent.
Posted
Comments
Pete O'Hanlon 4-Dec-13 11:10am    
As a note, putting that it's urgent in your question isn't going to get your question answered any faster. People volunteer their time freely, and will answer when they are able. Remember, just because it's urgent for you doesn't mean that it's urgent for anyone else.

1 solution

Add your pages into something like a list.
Generate a random number using the count of items as your input (remember to take 1 off the count as it's zero based).
Get the page at that index.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900