[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

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/