add random number functions