I am new to coding and I want to make a simple program that moves a windows to a random location on your desktop. Right now my code is this:
Me.Location = New Point(27, 55)
Me.Location = New Point(502, 624)
Me.Location = New Point(858, 477)
Me.Location = New Point(564, 50)
Me.Location = New Point(898, 41)
Me.Location = New Point(468, 944)
Me.Location = New Point(417, 7)
Me.Location = New Point(841, 697)
Me.Location = New Point(953, 438)
I had to put in the code myself so it will never be completely random and will always repeat itself. How do I make the numbers a random number?
Aucun commentaire:
Enregistrer un commentaire