From | "Michael Blasnik" <[email protected]> |
To | <[email protected]> |
Subject | Re: st: Query on -set seed- |
Date | Mon, 7 Feb 2005 17:23:33 -0500 |
I'm confused -- what is illegal about this seed? it is clearly much smaller than 2^31 -1<snip>
Rich
Roger Newson wrote:
Fellow Statalisters (especially StataCorp):
According to -[R] functions-, the -set seed- command can take any seed from 0 to 2^31-1 inclusive, and, if I specify a seed with one of these values in a do-file under -version- control and then use the -uniform()- function, then the same result will be produced every time I execute that do-file with the same input data. My query is, will this still be the case if I set the seed to an even higher integer? I ask because, last July, I inadvertently wrote a do-file containing the statements
set seed 4753533809;
gene double ranord2=uniform();
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |