Author Topic: Random Number  (Read 3476 times)

0 Members and 1 Guest are viewing this topic.

Offline KhameleonTopic starter

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Random Number
« on: January 29, 2009, 12:26:55 PM »
0
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?

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Random Number
« Reply #1 on: January 29, 2009, 12:31:05 PM »
0
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?
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline KhameleonTopic starter

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Re: Random Number
« Reply #2 on: January 29, 2009, 12:32:56 PM »
0
cancel that, I found a sub on the forbidden website.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Random Number
« Reply #3 on: January 29, 2009, 12:38:03 PM »
0
cancel that, I found a sub on the forbidden website.

Hey, EasyUO isn't forbidden here!  You can't say the same if you go over there.  Really.... YOU CAN'T SAY!  lol


****  Thread Locked.  (jk)
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline KhameleonTopic starter

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Re: Random Number
« Reply #4 on: January 29, 2009, 12:49:37 PM »
0
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.


Offline Xclio

  • Officially "The MAN"
  • Elite
  • *
  • *
  • Posts: 981
  • Activity:
    0%
  • Reputation Power: 9
  • Xclio has no influence.
  • Gender: Male
  • Respect: +56
  • Referrals: 1
    • View Profile
Re: Random Number
« Reply #5 on: January 30, 2009, 07:37:35 AM »
0
This kind of has me thinking for running a "randomized" rail.  hrmmm, gotta check some stuff might be back with an idea.

Offline Cstalker

  • Google Slut
  • ScriptUO Beta Tester
  • ***
  • *
  • Posts: 179
  • Activity:
    0%
  • Reputation Power: 0
  • Cstalker has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: Random Number
« Reply #6 on: February 01, 2009, 01:53:29 AM »
0
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 ?

Offline KhameleonTopic starter

  • Script Tester - Team Leader
  • Elite
  • *
  • *
  • Posts: 2574
  • Activity:
    0%
  • Reputation Power: 30
  • Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!Khameleon is a rising star!
  • Gender: Male
  • Respect: +238
  • Referrals: 0
    • View Profile
Re: Random Number
« Reply #7 on: February 01, 2009, 04:51:18 AM »
0
hey CS, trying to pick up your post count?

Tags: