added -r (randomize) and -f [filename] options. Crudely implemented.