Scripting

Script Idea

Friday, November 18, 2005 by jlaj1989 | Discussion: DesktopX

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
MountainDragon
Reply #1 Friday, November 18, 2005 6:22 PM
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.
jlaj1989
Reply #2 Friday, November 18, 2005 6:27 PM
thanks mountaindragon
jlaj1989
Reply #3 Friday, November 18, 2005 6:29 PM
What do you cange to mkae it a whole number above 1 ?

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01