cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/06:26:45

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: a randomize function for DJGPP?
Date: 10 Mar 1997 06:55:24 GMT
Organization: The National Capital FreeNet
Message-ID: <5g0b8s$snb@freenet-news.carleton.ca>
References: <5flbpp$m74 AT nr1 DOT ottawa DOT istar DOT net> <331FC0D1 DOT 1A26 AT cs DOT com> <E6oqJs DOT K2n AT boss DOT cs DOT ohiou DOT edu> <5fps67$pc3 AT news DOT ox DOT ac DOT uk>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet3.carleton.ca
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ironically, the old Commodore 64 had possibly the best random generator:
an ANALOG white noise chip in the sound card, which could be tapped by a
program to obtain random numbers. Obviously for uniform randomness of the
quality you describe, an analog white noise generator filtered to digital
is what's needed. (Imagine RAND_MAX being arbitrarily large at the
randomizing stage, like  a googol squared, only being truncated to
RAND_MAX later.)


--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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