Implemented additional random number functions.