Author Topic: Random number generator...  (Read 1712 times)

0 Members and 1 Guest are viewing this topic.

Offline blackhole

  • Still not over the rainbow
  • 29
  • Destiny can suck it
    • Black Sphere Studios
Random number generator...
Is there a SEXP for randomly generating a number, or randomly choosing from a series of possibilities? I took a quick browse through the SEXPs but couldn't find anything like it.

 

Offline Turey

  • Installer dude
  • 211
  • The diminutive form of Turambar.
    • FreeSpace Open Installer Homepage
Re: Random number generator...
Is there a SEXP for randomly generating a number, or randomly choosing from a series of possibilities? I took a quick browse through the SEXPs but couldn't find anything like it.

Yes. I'll get the name for you in a moment.

EDIT: Once you make an event with when-argument or every-time-argument, right click on the any-of and change it to random-of.
« Last Edit: June 21, 2007, 07:41:46 pm by Turey »
Creator of the FreeSpace Open Installer.
"Calm. The ****. Down." -Taristin
why would an SCP error be considered as news? :wtf: *smacks Cobra*It's a feature.

 

Offline blackhole

  • Still not over the rainbow
  • 29
  • Destiny can suck it
    • Black Sphere Studios
Re: Random number generator...
Holy freaking cow that was fast. Thanks!

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Random number generator...
Or you could just use Rand or Rand-multiple if all you need is a random number. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline blackhole

  • Still not over the rainbow
  • 29
  • Destiny can suck it
    • Black Sphere Studios
Re: Random number generator...
Well, i don't, but i'll keep that in mind ^^