Changed parameters a and b on gamma distribution from int to double. Also changed C++11 PRNG to R Standalone