title: Sample a random integer in Rcpp
body: <p>This might be a very easy question, but I can't really find it. How can I sample a random integer between 1 and N in Rcpp? I know I can sample a uniform number and round it, or include the <code>sample</code> function to use in the C++ code, but both don't seem like the correct way of doing this.</p>