Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 May 1996 17:35:27 +0000 (GMT)
From:      Gabor Zahemszky <zgabor@CoDe.hu>
To:        freebsd-questions@freebsd.org
Cc:        jolp@peerlogic.com
Subject:   Re: Where's random?
Message-ID:  <199605161735.RAA00595@CoDe.CoDe.hu>
In-Reply-To: <19ab1fe0@peerlogic.com> from "jolp" at May 15, 96 09:41:01 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
>      
>      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 <zgabor@CoDe.hu>

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
Earth is the cradle of human sense, but you can't stay in the cradle forever.
						Tsiolkovsky



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605161735.RAA00595>