added rand.  computes random numbers, strings, directories