Getting a Random Seed for the Random Number Generator

Dar Scott dsc at swcp.com
Fri Dec 8 11:51:13 CST 2006


On Dec 8, 2006, at 6:33 AM, Dave wrote:

> Anyone have any tricks for generating a random seed in RunRev?

If you just want to set the randomSeed for something like the start  
of a game, then use the milliseconds.  IIRC, on one OS, I forgot  
which, you have to modify that to make sure it is in the right range.

Unless you have some special need, your game will be fine with the  
initial value set by Revolution or any value left by the previous  
game depending on when the game starts.

If you need better random bits, just ask!

Dar





More information about the use-livecode mailing list