Added missing typemap
choose method for RNG
Sample method