delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/24/16:26:58

Date: Sun, 24 Sep 1995 12:46:23 -0700
To: dj (DJ Delorie)
From: taps AT cyberstore DOT ca (Tapio Vocadlo)
Subject: Re: LIB: Problems with rand()
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>
>> 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.
>

Hmmm... but I am using V2 (insert Twilight Zone theme here).
Or is there a new update to V2?

Please note that I've moved to Ottawa and my new e-mail address is

tapiov AT corel DOT ca

- Raw text -


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