loading

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

About This Instructable

110views

2favorites

License:

Bio: Make stuff!!!
More by RunicWarrior:How To Make a Harry Potter wand Hogwarts graduation certificate  Customizable Bookmark  
Add instructable to: