Re: hmm... rand



On Nov 13, 5:41 am, Sorbus <lairdro...@xxxxxxxxx> wrote:
I can only echo that time(NULL) probably returns the same seed each
time... however,

I can echo that time(NULL) returns current time and thus wont
return the same seed each time you start the program. unless
your computer clock never changes...

I have written my own implementation of it in C/++, too:


blerk!

or you know, you could get, like, a better random routine?
a mersenne twister is top notch stuff for roguelikes and can be
dropped in...

-stu

.



Relevant Pages

  • Re: getting values from www
    ... This looks like you are trying to create something to steal someone elses ... you probably wont find anyone to help you. ... > interesting me infos from WWW. for example i have URL like ... > echo $txt; ...
    (alt.php)
  • Re: getting values from www
    ... This looks like you are trying to create something to steal someone elses ... you probably wont find anyone to help you. ... > interesting me infos from WWW. for example i have URL like ... > echo $txt; ...
    (comp.lang.php)
  • Re: The tobacco isle
    ... Hope your ok Echo! ... at least you know you wont be missing the ability to ...
    (alt.support.stop-smoking)
  • how can i check for an empty collection?
    ... i want to check the event log for a specific event id. ... chances are it wont exist. ... if it does NOT exist i need to echo "not found" if it does exist i need to echo the date property of the event, but only for the first one found, then i can exit. ...
    (microsoft.public.scripting.vbscript)