title: What does the integer while setting the seed mean?
body: <p>I want to randomly select n rows from my data set using the <code>sample()</code> function in <strong>R</strong>. I was getting different outputs each time and hence used <code>set.seed()</code> function to get the same output. I know that each integer in the <code>set.seed()</code> will give me a unique output and the output will be the same if set the same seed. But I'm not able to make out what that integer that is passed as a parameter to the <code>set.seed()</code> function means. Is it just an index that goes into the random generator algorithm or does it mean some part of the data from where you start sampling? For example, what does the <code>2</code> in <code>set.seed(2)</code> mean?</p>