Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!uwm.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!utkcs2!wozniak From: wozniak@utkux1.utk.edu (Bryon Lape) Newsgroups: comp.lang.c Subject: Re: random number generator Keywords: random number Message-ID: <1990Jul23.192539.5587@cs.utk.edu> Date: 23 Jul 90 19:25:39 GMT References: <941@dgis.dtic.dla.mil> Sender: news@cs.utk.edu (USENET News System) Reply-To: wozniak@utkux1.utk.edu (Bryon Lape) Distribution: usa Organization: University of Tennessee Computing Center, Knoxville Lines: 13 In article <941@dgis.dtic.dla.mil> tswenson@dgis.dtic.dla.mil (Timothy Swenson) writes: > > Does anyone have a random number generator >written in C? Or better yet, Small-C. I really need >one for a project I'm working on, and my compiler does >not have one in it's library. I'll take anything that I thought that rand() and srand() are standard library functions! These will generate random numbers. srand() is the seed function while rand() returns a pseudo-random number. -bryon lape-