Introduction: How to Make a Random Placement Generator

hi in this instructable i will show you how to make a random placement generator of my own creation

first you will need to open the visual basic studio

then add a button to the and double click it

next add this line of code:

' Initialize the random-number generator.

Randomize()

' Generate random value between 0 and 6000.

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

Button1.Top = CInt(Int((600 * Rnd()) + 0))

Button1.Left = CInt(Int((600 * Rnd()) + 0))

Button1.Width = CInt(Int((650 * Rnd()) + 0))

Button1.Height = CInt(int((600 * Rnd()) + 0))

after you add the line of code you should be able to click the button and will disappear and reappear randomly somewhere else

Comments

About This Instructable

125views

2favorites

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: