X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "MikeC" Newsgroups: comp.os.msdos.djgpp References: <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: 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" 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.