Neil F
Not directly. But here are a few of indirect ways -- they
use ksh or perl:
set r = `ksh 'echo $RANDOM'`
set r = `perl -e 'srand; print int(rand(200)+1)'`
set r = `perl -e 'print int(rand(100))'`
+--------------------------------------------------------------------+
| Tom Parker | National Center for Atmospheric Research |
| tpa...@ncar.ucar.edu | (303) 497-1227 |
+--------------------------------------------------------------------+
The `jot` utility might also be of some help (if it's installed
on the poster's sys.)
Checking man jot on my sys, it doesn't say if it's PD or
freely/readily available, tho'.
--
Who should be replaced with an Expert System?
remove NO_SPAM. from address to reply
@ iosize = ${maxsize}
@ rand = 1
while ( -1 )
@ rand += `date +%S` + ${iosize}
while ( ${rand} > 60 )
@ rand -= 60
end
@ iosize = ( ${rand} * ${maxsize} ) / 60
...
Depending on what your trying to accomplish, this may or may not be
random enough for you.
--
Bill Roeder
If you find yourself in a hole, the first thing to do is stop diggin.