ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Khameleon on January 29, 2009, 12:26:55 PM

Title: Random Number
Post by: Khameleon on January 29, 2009, 12:26:55 PM
does anyone have a Random number sub that will not repeat the same number twice, lets the user choice the high and low numbers to random?
Title: Re: Random Number
Post by: TrailMyx on January 29, 2009, 12:31:05 PM
Perhaps need a bit more information there.  Is there a range of numbers, i.e. 1-1000, 1-10000, etc.  Also how often would you be calling it.  The reason I ask is that if you want to be sure you don't call the same number 2 times, you need to record if a number has been called, and if you call it a bunch, you'll start eating memory and computer cycles as you start to hunt for a random number that hasn't been found yet.  More info?
Title: Re: Random Number
Post by: Khameleon on January 29, 2009, 12:32:56 PM
cancel that, I found a sub on the forbidden website.
Title: Re: Random Number
Post by: TrailMyx on January 29, 2009, 12:38:03 PM
cancel that, I found a sub on the forbidden website.

Hey, EasyUO (http://www.easyuo.com) isn't forbidden here!  You can't say the same if you go over there.  Really.... YOU CAN'T SAY!  lol


****  Thread Locked.  (jk)
Title: Re: Random Number
Post by: Khameleon on January 29, 2009, 12:49:37 PM
nothing to big, just had an idea for an in game event, haven't totally thought it through yet.
a little more thinking and the scripting part will be done, now I have to think how to get people in on it.  and make it legit and secure. so people don't try to cheat.

Title: Re: Random Number
Post by: Xclio on January 30, 2009, 07:37:35 AM
This kind of has me thinking for running a "randomized" rail.  hrmmm, gotta check some stuff might be back with an idea.
Title: Re: Random Number
Post by: Cstalker on February 01, 2009, 01:53:29 AM
You know I think I was asking the very same question a few months ago. It wasnt my tread over there that you found was it ?
Title: Re: Random Number
Post by: Khameleon on February 01, 2009, 04:51:18 AM
hey CS, trying to pick up your post count?