Stochastic simulation of rainfall and climate variables using the direct sampling technique