Question Display Random numbers

sth_syed

Member
Joined
Aug 26, 2010
Messages
6
Programming Experience
Beginner
I have 8 buttons it should display each button with any value from 1 to 8

After selecting any one button again the button should display random value from 1 ot 8.

Help me in this regards

Thank you.
 
In VB.NET, you generally use the Random class to generate random numbers. You create one instance and call its Next method multiple times, rather than creating multiple instances and calling the Next method of each one once. You then use the generated number in whatever way is appropriate for your application. In your case, it sounds like you may simply be able to display the number on a Button.
 

Latest posts

Back
Top