flattspott
Feb 9 2004, 01:49 PM
I see in the ActionScript readme there's $random$, but in the internal.xml I see just $rand$. What I want is to be able to get a random # from 0 to 50. No more, no less.
Incase you must know why, it's for my NewsChanger Script
BenJeremy
Feb 9 2004, 02:04 PM
It's "$rand$"
Used with MOD of 51, it should give you a number from 0-51
flattspott
Feb 9 2004, 02:07 PM
Like this,
SET jump $rand$
MOD jump 51
BenJeremy
Feb 9 2004, 02:23 PM
yes.
flattspott
Feb 9 2004, 02:28 PM
Thanks, that was what I wanted, now I just have to throw some ifs in there to keep it from going to a negative number and I'll be set.
geniusalz
Feb 9 2004, 08:19 PM
It shouldn't be giving you any negative numbers
flattspott
Feb 9 2004, 10:15 PM
Well after I finish up the basics of my newest script
ConfigSwitch I post the section so someone can correct me.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.