From owner-cvs-etc Sat May 24 17:15:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA26936 for cvs-etc-outgoing; Sat, 24 May 1997 17:15:24 -0700 (PDT) Received: from relay.nuxi.com (nuxi.ucdavis.edu [128.120.175.23]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA26931; Sat, 24 May 1997 17:15:22 -0700 (PDT) Received: from dragon.nuxi.com (reqb-075.ucdavis.edu [128.120.254.75]) by relay.nuxi.com (8.8.5/8.6.12) with ESMTP id RAA15081; Sat, 24 May 1997 17:20:09 -0700 (PDT) Received: (from obrien@localhost) by dragon.nuxi.com (8.8.5/8.7.3) id AAA00886; Sun, 25 May 1997 00:14:57 GMT Message-ID: <19970524171454.52890@dragon.nuxi.com> Date: Sat, 24 May 1997 17:14:54 -0700 From: "David O'Brien" To: "Daniel O'Callaghan" Cc: Adam David , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-etc@FreeBSD.ORG Subject: Re: cvs commit: src/etc/namedb named.root References: <199705241848.SAA11089@veda.is> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.74 In-Reply-To: ; from Daniel O'Callaghan on Sun, May 25, 1997 at 07:50:59AM +1000 X-Warning: Mutt Bites! X-Operating-System: FreeBSD 2.2-STABLE Organization: The NUXI *BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-cvs-etc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have a shell script which will update the root.cache. Does anyone know > of a way to get a random number in a Bourne shell script, without > installing the games distribution? You probably already know this, but if you are willing to run ksh/pdksh (( hr = ($RANDOM % 4) + 1 )) (( min = $RANDOM % 60 )) Simular logic for Bash. -- -- David (obrien@NUXI.com -or- obrien@FreeBSD.org)