Use R's own random number generator

CRAN does not allow to use C++'s random number now.