make RNG function outputs the last argument per Google C++ style guidelines