www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/22/21:16:32

Date: Tue, 22 Aug 1995 20:19:21 -0400
From: dj (DJ Delorie)
To: taps AT cyberstore DOT ca
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: LIB: Problems with rand()

> The random() function works fine, though. In Borland C,
> rand() works just as well. Is djgpp rand() supposed to
> be this way?

rand() in djgpp V1 uses a bad algorithm.  I've fixed it for djgpp V2,
or you can just use random() instead.

- Raw text -


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