10-10-2010
23,310,
4,623
Join Date: Aug 2005
Last Activity: 7 July 2020, 11:47 AM EDT
Location: Saskatchewan
Posts: 23,310
Thanks Given: 1,331
Thanked 4,623 Times in 4,217 Posts
What shell do you usually use $RANDOM in? You should put in that shell instead of #!/bin/sh. On many platforms, /bin/sh is a very basic, minimal shell. Try 'echo $SHELL' inside your "good" shell to find out what it is.