Article View: gnu.gcc.help
Article #41871rand - more info needed
From: Saul Cozens
Date: Fri, 09 Feb 1996 00:00
Date: Fri, 09 Feb 1996 00:00
23 lines
1218 bytes
1218 bytes
Hi,
in response to 'man rand' my system tells me :
'The low bits of the numbers generated are not very random;
use the middle bits. In particular the lowest bit alter-
nates between 0 and 1.'
Could anybody elaborate on this. Which middle bits do I use
for a decent random function? How many least significant bits
do I need to drop? Just bit 0 or more?
Sorry if this stuff is in the faq - but I could see it there.
Cheers
Saul Cozens
==============================================================
email: mailto:s.cozens@sheffield.ac.uk
WWW: http://www.shef.ac.uk/~eee/esg/staff/suc_prof.html
tel. work: +44 114 282 5188
tel. home: +44 114 268 0385
Technical Details
Message-ID:
<311B44A4.41C67EA6@sheffield.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,d1f62a325767eec2,start X-Google-Attributes: gid11318c,public From: Saul Cozens <s.cozens@sheffield.ac.uk> Subject: rand - more info needed Date: 1996/02/09 Message-ID: <311B44A4.41C67EA6@sheffield.ac.uk> X-Deja-AN: 138570796 content-type: text/plain; charset=us-ascii organization: Academic Computing Services, Sheffield University mime-version: 1.0 newsgroups: gnu.gcc.help x-mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m)