adding a random seed
Moved a few things around to fit into 80 columns