🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.emp
Article #49

Re: add command

#49
From: utzoodecvaxharpoeaglemhtsaihnssi...
Date: Tue, 11 May 1982 15:00
10 lines
742 bytes
"In 4.1BSD, if you take the numbers from rand() mod 8, you end up with a
sequence of period eight..."

If I remember the details from my data structures class well enough,
one should NEVER take the output of a nrandom number generator MOD anything
(if you're trying to get random numbers, that is).  The least significant
bits are also the least random, and thus one should use DIV.

					Paul Lustgarten
					Bell Labs - Indian Hill
Technical Details
Message-ID: <bnews.ihps3.226>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
From: utzoo!decvax!harpo!eagle!mhtsa!ihnss!ihps3!pcl
Newsgroups: net.games.emp
Title: Re: add command
Article-I.D.: ihps3.226
Posted: Tue May 11 15:00:00 1982
Received: Wed May 12 01:38:20 1982
Subject: Re: add command
Date: Tue, 11 May 1982 15:00:00 +0000
Message-ID: <bnews.ihps3.226>