delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/12/15:57:38

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>



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019