What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Random Numbers

Random Numbers
Author: Message:
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: Random Numbers
code:
myNum = Math.floor(Math.random()*15);
Should give you a random number between 0 and 15

If you want 1  to 15

code:
myNum = Math.floor(Math.random()*14+1);
Should work.

This post was edited on 08-20-2006 at 11:02 PM by Silentdragon.
08-20-2006 11:01 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Random Numbers - by Spunky on 08-20-2006 at 10:51 PM
RE: Random Numbers - by Silentdragon on 08-20-2006 at 11:01 PM
RE: Random Numbers - by KnRd_WC on 08-20-2006 at 11:05 PM
RE: Random Numbers - by Spunky on 08-20-2006 at 11:17 PM
RE: Random Numbers - by KnRd_WC on 08-20-2006 at 11:25 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On