Utility functions for working with random number generators
