Introduction: How to Make a Random Number Generator Using Visual Basic 2012

hi in this instructable i'm going to show you how to make a random number generator

first open the visual basic program

then drag a button onto the form

and add a text box

next double click on the button

and once you're in the code building page, input this code line:

Dim a as Integer

Dim value As Integer = CInt(Int((10 * Rnd()) + 1))

TextBox1.Clear()

' Initialize the random-number generator.

Randomize()

' Generate random value between 0 and 600.

TextBox1.Text = CInt(Int((10 * Rnd()) + 1))

a = TextBox1.Text

once you input this code you should be able to generate a random number and you can also change to code to make it generate larger numbers

I want to say thank you to all of my followers and i didn't expect to make it this far, and everything i do on here i do for you guys thank you.

Comments

About This Instructable

1,790views

4favorites

License:

Bio: Make stuff!!!
More by RunicWarrior:Diy Log Bench How to Make a Demonic Voice in AudacityHow To Make a Harry Potter wand
Add instructable to: