A good idea, only thing I\'d fault is the use of checking if ($1) && ($2) && ($3) to make sure 3 parameters were specified. It fails if I want to choose 0 as the beginning of a range, i.e. $rs(10,0,9) to get 10 random numbers since if (0) is false. A better method to check 3 parameters have been supplied is to see if ($0 = 3) where $0 returns the number of params passed to the alias