Feature/alt rng

Updated version of the R RNG use, now with changes by Conrad