View Single Post
Go4Expert Member
17Nov2010,23:38  
mugnebot's Avatar
here is a way to get a file name that is really random, it uses the epoch date plus 4 random digits.
randfile="r$(date +'%s')$(($RANDOM%10))$(($RANDOM%10))$(($RANDOM%10) )$(($RANDOM%10))";
or just the four random digits.
FourRandDigits="$(($RANDOM%10))$(($RANDOM%10))$(($ RANDOM%10))$(($RANDOM%10))";
oh wait isnt this a bash forum? oh well.
E_E_F like this