Date: Sat, 24 May 1997 17:14:54 -0700 From: "David O'Brien" <obrien@NUXI.com> To: "Daniel O'Callaghan" <danny@panda.hilink.com.au> Cc: Adam David <adam@veda.is>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-etc@FreeBSD.ORG Subject: Re: cvs commit: src/etc/namedb named.root Message-ID: <19970524171454.52890@dragon.nuxi.com> In-Reply-To: <Pine.BSF.3.91.970525073422.14689d-100000@panda.hilink.com.au>; from Daniel O'Callaghan on Sun, May 25, 1997 at 07:50:59AM %2B1000 References: <199705241848.SAA11089@veda.is> <Pine.BSF.3.91.970525073422.14689d-100000@panda.hilink.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970524171454.52890>