as part of a shell script, i'd like to generate a random
number (preferably an integer), but i'd like to do it in a
POSIX-compliant way.

  AFAICT, using the $RANDOM variable is not POSIX-compliant --
that variable is not defined in a strict POSIX shell.

  any other suggestions?  perhaps reading a number of bytes
from /dev/urandom or something?

rday


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to