added rng.py functions to all the files, github issue=165