add random variable generator