Added utils/rng.py issue-165

I have added utils/rng.py
Also made changes to certain files which seemed to use seed or rng. I have not updated files which are test.

This corresponds to the issue -
#165

Abhi