delorie.com/archives/browse.cgi | search |
From: | Matthew Moss <mmoss AT panix DOT com> |
Subject: | rand() |
To: | djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP Mailing List) |
Date: | Sat, 12 Mar 1994 15:00:10 -0500 (EST) |
> >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. > > 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) Probably srand().... check <stdlib.h>
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |