Article View: comp.os.msdos.programmer
Article #5438Re: TC++ 1.00 Bug in random(int)
From: George A. Theall
Date: Tue, 26 Mar 1991 01:10
Date: Tue, 26 Mar 1991 01:10
14 lines
1047 bytes
1047 bytes
In article <1991Mar26.000533.12013@isis.cs.du.edu> cjones@isis.UUCP (Charles J. Jones) writes: >There is a bug in the random function of Turbo C++ version 1.00. ... >The fix is easy ... >#define random(n) (((long) rand()*n)/((long) RAND_MAX + 1)) It's been fixed by Borland as of TC++ v1.01. George --- theall@rm105serve.sas.upenn.edu Dept. of Economics theall@ssctemp.sas.upenn.edu Univ. of Pennsylvania gtheall@penndrls.upenn.edu Philadelphia, PA 19104
Technical Details
Message-ID:
<39802@netnews.upenn.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!rm105serve.sas.upenn.edu!theallReferences:
<1991Mar26.000533.12013@isis.cs.du.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!rm105serve.sas.upenn.edu!theall From: theall@rm105serve.sas.upenn.edu (George A. Theall) Newsgroups: comp.os.msdos.programmer Subject: Re: TC++ 1.00 Bug in random(int) Summary: It's fixed Message-ID: <39802@netnews.upenn.edu> Date: 26 Mar 91 01:10:40 GMT References: <1991Mar26.000533.12013@isis.cs.du.edu> Sender: news@netnews.upenn.edu Organization: University of Pennsylvania Lines: 14 Nntp-Posting-Host: rm105serve.sas.upenn.edu