From owner-freebsd-questions Thu May 16 08:35:15 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA12318 for questions-outgoing; Thu, 16 May 1996 08:35:15 -0700 (PDT) Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id IAA12287 for ; Thu, 16 May 1996 08:35:03 -0700 (PDT) Received: by mail.EUnet.hu, id RAA17478; Thu, 16 May 1996 17:34:56 +0200 Received: by CoDe.CoDe.hu (RAA00595); Thu, 16 May 1996 17:35:27 GMT From: Gabor Zahemszky Message-Id: <199605161735.RAA00595@CoDe.CoDe.hu> Subject: Re: Where's random? To: freebsd-questions@freebsd.org Date: Thu, 16 May 1996 17:35:27 +0000 (GMT) Cc: jolp@peerlogic.com In-Reply-To: <19ab1fe0@peerlogic.com> from "jolp" at May 15, 96 09:41:01 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > > help, > > I have a need to produce random results. I happened to run > 'man random' > and found that the system has a man page for the util, but I've searched Wasn't it the manual of random(3)? - it's a C-library function, and not a command, as the (3) says. Doesn't mind, use the RANDOM variable of ksh/bash (maybe sh (ash)?) eg, this script will generate some ``semirandom'' integers: #!/usr/local/bin/ksh while true: do echo $RANDOM done -- Gabor Zahemszky -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky