Random Number Generator (Tutorial)

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
1 post Page 1 of 1
Contributors
MANSQN
VIP - Donator
VIP - Donator
Posts: 159
Joined: Sat Sep 17, 2011 11:33 pm

Random Number Generator (Tutorial)
MANSQN
You will need one textbox and one button.

1: make a new project
2: pick windows application
3: add one textbox and one button(place where you wish)

Now click the button and place this code.
Code: Select all
Dim rndnumber As Random
        Dim number As Integer
        rndnumber = New Random
        number = rndnumber.Next(1, 1001)
        TextBox1.Text = number.ToString
Thats you done, Debug & test your program.

-Thanks-
1 post Page 1 of 1
Return to “Tutorials”