[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seeding the random number generator?



When I call Math.random() I end up getting the same sequence of
"random" numbers. Is there I way to seed the function (like by using the 
clock or something?)

-- Robert 
____________________________________________________

Robert Thuleen
Sr. Software Engineer
Science Applications International Corp (SAIC)
San Diego, Ca

mailto:thuleen@mls.saic.com
http://www.saic.com
http://www.free.cts.com/crash/t/thuleen
--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/