title: Random Numbers in R and C++
body: <p>Say I want to generate a vector of 10 random numbers. How would I be able to do so in R and c++ such that I get the same vector?</p>
  
  <p>I know in C++ I gotta use srand() and then rand()
  while in R I can use set.seed() and then runif.</p>
  
  <p>But how would I get them to be the same?</p>