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.