Some extension methods for random number generators