Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: generating random, not pseudo-random numbers


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: generating random, not pseudo-random numbers
Date   Sat, 10 Nov 2012 14:21:44 +0100

On Fri, Nov 9, 2012 at 6:16 PM, Pradipto Banerjee wrote:
> I am using Stata 9.2 and it appears that I don't have the runiform() function. The uniform() function is pseudo-random numbers and so when I run a code say N times, the output is the same every time. How can I generate random numbers in Stata 9.2 ?

-runiform()- would not solve that problem either, even if you could
use it in Stata 9; computers can only execute deterministic
instructions, so they can only produce pseudo-random numbers. On the
Stata blog <http://blog.stata.com/> there are a couple of posts by
Bill Gould on random numbers that might help you get an idea of the
details behind the pseudo-random number generators in Stata.

-- Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index