Add random number generator