Update example_rbm.py

added rng functions