randomnumber / randomseed

Dar Scott dsc at swcp.com
Wed Jul 30 00:03:00 EDT 2003


On Tuesday, July 29, 2003, at 08:48 PM, Björnke von Gierke wrote:

> I am experimenting with the random functions, and I would like to know 
> what exactly the largest number is that the randomseed still accepts, 
> as I found out that it generates the same numbers when given too large 
> numbers (ca. 10 digits). Also is there such a limit on the 
> randomnumber ?

I don't know the exact limit for random(), but I do know that 2^31 is a 
near upper bound.  The randomseed limit may be similar.  That says 
nothing on the quality of results for use of random() up to that limit.

Dar Scott




More information about the use-livecode mailing list