On Wed, Jul 11, 2001 at 03:51:05PM -0400, William Park <[EMAIL PROTECTED]> wrote:
> Or, you can play around with RANDOM environment variable (bash), perhaps
> taking only the last digit which will give you 10 choices, ie.
>     ii=`echo $RANDOM`; echo ${ii#${ii%[0-9]}}

    Why not use bash to compute the remainder?  For instance, if you
have 13 signature files, compute 0-12 (pseudo-)randomly with:
    $((RANDOM%13))

-- 
Bob Bell <[EMAIL PROTECTED]>
-------------------------------------------------------------------------
 "Think of me as CVS with brains."
   -- Linus Torvalds, creator and maintainer of the Linux operating system

Reply via email to