From owner-freebsd-chat Fri Nov 2 10:16:48 2001 Delivered-To: freebsd-chat@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id AC2FB37B403 for ; Fri, 2 Nov 2001 10:16:45 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 50C37BC95 for ; Fri, 2 Nov 2001 10:16:45 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id KAA16075 for ; Fri, 2 Nov 2001 10:16:45 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id fA2IF7f54175; Fri, 2 Nov 2001 10:15:07 -0800 (PST) (envelope-from swear@blarg.net) To: freebsd-chat@FreeBSD.ORG Subject: Re: Unix Philosophers Please! References: <3BE08283.EC81A8ED@math.missouri.edu> <20011031170629.C865-100000@coredump.scriptkiddie.org> <20011101214720.G4360@blossom.cjclark.org> From: swear@blarg.net (Gary W. Swearingen) Date: 02 Nov 2001 10:15:06 -0800 In-Reply-To: <20011101214720.G4360@blossom.cjclark.org> Message-ID: Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "Crist J. Clark" writes: [ about pi digits as random numbers ] > > If you were to run all of your statistical tests on that set of > numbers, it would appear to be random. But it is not. If you tell me > any arbitrary position in the bit stream, I can tell you what the next > value will be. Not random. Just a side-note about the opposite "gotch" to also watch out for: "0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" could be the output of a truly random number generator and it could thus be said to be a random number sequence. You can not tell me what the next value wil be. Random. (You will never get that sequence from a common psuedo-random number generator.) So when some software ask you for a random number sequence, you should, in most cases, not only feed it random numbers, but numbers that are designed to produce numbers that look random even though they are not or those that have passed statistical tests for randomness. So it will often be better to use numbers from random(3) (maybe seeded by numbers from /dev/random) than those from /dev/random. (Unless those devices' output has been designed to also pass statistical tests in all cases, rather than seeming to be truly random (which won't pass statistical tests in all cases). Anyone know?) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message