Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: re: random number generation


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: random number generation
Date   Wed, 6 Apr 2005 20:49:59 -0400

Thuy said
That's impossible and against the so-called "randomn". If even when you try
to repeat the same command in STATA, you get different sequence each time.

Absolutely untrue. The whole purpose of Stata's "set seed #" command is to generate the IDENTICAL sequence of random numbers on demand. The pseudo-random-number generators are deterministic functions of the seed value. If you start with the same seed, you get the same sequence of PRNs.

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index