Scripting

Script Idea

I have a script idea. Can anyone make me a random number script. SO you hit a button and it gives you a random number. Thanks
1,370 views 3 replies
Reply #1 Top
this will give you a random number between 0 and 1:

Sub Object_OnLButtonUp(x,y,dragged)
If Not dragged Then
Randomize
n = Rnd
MsgBox(n)
End If
End Sub

You can manipulate the result after that if you need it bigger, integer, etc.
Reply #2 Top
thanks mountaindragon
Reply #3 Top
What do you cange to mkae it a whole number above 1 ?