Anyone can suggest why the attached small sh script for pseudo random number generation [0-99] is not able to keep the variable $rand outside the scope of the while loop? Any suggested fix? My operating system is Digital UNIX V4.0D Thanks -- =================================================================== | Daniele Fua` G24 | E-mail: fua@g24ux.phys.uniroma1.it | | Dept. of Physics | Phone : +39 06 4991 3515 | | Universita` "La Sapienza" | Fax : +39 06 4991 3522 | | P.le A. Moro, 2 | | | 00185 Roma, Italy | | ===================================================================