Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i am currently stuck on a problem. my problem is i have 9 push buttons on screen numbered 1 to 9. what i need to do is to display these buttons at random. how do i do this?
Posted
Comments
LittleYellowBird 28-Apr-11 6:13am    
Hi, it would help you could clarify your question, what do you mean by 'is to display these buttons at random'? Do you mean one at a time at random, or in a random order or random positions? I think it would help if you could explain a bit better what you are stuck with. Regards, Ali :)

1 solution

You can use "System.Random" with some of your own logic to get the desired result.
 
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