Re: hmm... rand
- From: stu <yakumo9275@xxxxxxxxx>
- Date: Tue, 13 Nov 2007 04:40:08 -0800
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
.
- References:
- hmm... rand
- From: NIm
- Re: hmm... rand
- From: Sorbus
- hmm... rand
- Prev by Date: Re: hmm... rand
- Next by Date: Re: hmm... rand
- Previous by thread: Re: hmm... rand
- Next by thread: Re: hmm... rand
- Index(es):
Relevant Pages
|