randomnumber / randomseed

Björnke von Gierke bvg at mac.com
Wed Jul 30 09:38:00 EDT 2003


On Mittwoch, Jul 30, 2003, at 06:56 Europe/Zurich, Dar Scott wrote:
>
> 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.

This sees to  be true, well actually its (2^31) - 1 probably due to 
starting with zero. how did you come up with that number?




More information about the use-livecode mailing list