How to Make a Random Placement Generator

About: Make stuff!!!

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.


' 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



    • Pocket Sized Contest

      Pocket Sized Contest
    • Tape Contest

      Tape Contest
    • Remix Contest

      Remix Contest