From owner-freebsd-hackers Sat Oct 5 09:51:48 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA25653 for hackers-outgoing; Sat, 5 Oct 1996 09:51:48 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA25604 for ; Sat, 5 Oct 1996 09:50:40 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA20684; Sat, 5 Oct 1996 12:50:08 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Sat, 5 Oct 1996 12:50 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.7.5/8.7.3) with ESMTP id IAA11248; Sat, 5 Oct 1996 08:53:58 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.7.5/8.6.9) id IAA05170; Sat, 5 Oct 1996 08:53:49 -0400 (EDT) Date: Sat, 5 Oct 1996 08:53:49 -0400 (EDT) From: Thomas David Rivers Message-Id: <199610051253.IAA05170@lakes.water.net> To: ache@nagual.ru, ponds!uriah.heep.sax.de!joerg_wunsch Subject: Re: I plan to change random() for -current (was Re: rand() and random()) Cc: ponds!freebsd.org!current, ponds!freebsd.org!freebsd-hackers Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > I don't think so. But they are much better with random(). See xmine, > > if you wanna get a nice example. It generates totally predictable > > layouts when using rand(). > > Totally predictable layouts not rand() illness only but random() too. > It not depends well on different initial state, producing the same > sequence. I finally dig out initial posting (below). > > IMHO we need to change our random() as suggested. > When working with the Data General runtime library's on AOS/VS (remember that?) we discovered a similar situation - our rand() wasn't random... A user had sent in a marvelous demonstration of this - generate several thousand X/Y pairs with calls to rand() and make a scatter plot of them. (i.e. a monte-carlo idea..) When we plotted these points, we got a definite line!!!! I agree - fix rand()... - Dave R. -