Utility functions for working with Random Number Generators