From: Eric Hodel Date: 2006-11-29T03:46:47+09:00 Subject: Re: rand random. You've got to be kidding On Nov 28, 2006, at 0951 , Smgspices@aol.com wrote: > Surely it must be possible to initialize rand with current date and > time. > Documents seem to indicate this is done with rand(0) or srand with > no value. I > have tried both methods and I get the same tired old sequence of > numbers. I > would write my own random number generator except I don't know how > to get a > numeric value out of Time. On windows I think there is no way to seed from /dev/urandom, so you get seeded by some default value. Instead the seed is composed of the current time in seconds and microseconds and the pid. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com