delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/08/30/17:30:06

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "MikeC" <My_address AT end DOT of DOT post>
Newsgroups: comp.os.msdos.djgpp
References: <N1GBi.41236$S91 DOT 9560 AT newsfe7-win DOT ntli DOT net> <200708302103 DOT l7UL3aMh007106 AT envy DOT delorie DOT com>
Subject: Re: random() : What am I doing wrong?
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
Message-ID: <AtGBi.2114$F77.71@newsfe4-win.ntli.net>
Date: Thu, 30 Aug 2007 21:17:20 GMT
NNTP-Posting-Host: 86.13.154.18
X-Complaints-To: http://netreport.virginmedia.com
X-Trace: newsfe4-win.ntli.net 1188508640 86.13.154.18 (Thu, 30 Aug 2007 22:17:20 BST)
NNTP-Posting-Date: Thu, 30 Aug 2007 22:17:20 BST
Organization: ntl Cablemodem News Service
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"DJ Delorie" <dj AT delorie DOT com> wrote in message 
news:200708302103 DOT l7UL3aMh007106 AT envy DOT delorie DOT com...
>
> srand() initializes rand()
> http://www.delorie.com/djgpp/doc/libc/libc_739.html
>
> srandom() initializes random()
> http://www.delorie.com/djgpp/doc/libc/libc_740.html

Well so it does!  That fixed it.

Many thanks, DJ, I didn't realise there were two random number generators.

Best regards,

MikeC. 


- Raw text -


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