Mailing List Archive

Support open source code!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] random in bash [Kmail Notification]

maybe I should the man page!

$man bash

       RANDOM Each  time  this  parameter is referenced, a random
              integer between 0  and  32767  is  generated.   The
              sequence  of  random  numbers may be initialized by
              assigning a value to RANDOM.  If RANDOM  is  unset,
              it loses its special properties, even if it is sub-
              sequently reset.

-----------end snip-----------------
$echo $RANDOM
$echo $RANDOM

On Fri, 8 Mar 2002 08:45:32 +0900
Antony Stace <> wrote:

> So would I be correct in concluding that bash cannot produce any random numbers(or random-ish looking ) by itself without using some other program or device?

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links