Added random number generator utilities.