Mail Archives: djgpp/1994/03/12/03:57:27
>My only remaining problem is with rand(), which always seems to return the
>same sequence. Usually there is an initialization routine, but I can't find
>it yet.
I am not sure if you know. From what I am hearing I think
that you know about it. But of the rand() functions I have
seen most are pseudo-random number generators. Meaning if you
have a program that prints out 10 random numbers, ever time
you run it you will get the same thing. It usually has a
function known as a seed or like you said an initialization
function which starts the random number generator. I haven't
workied with the rand() function on gcc yet, so I can't tell
you what the name of the function is.(the init. one)
- Raw text -