added docstring to utils/rng functions