Added comments to rand.py, replaced global variable with argument, added output to README