Added uniform random number generation functionality.