>J. Michael Oakes wrote:
>
>Using Stata 8, I want to have a different seed each time I call an *.ado
>file with uniform() in it. I recall setting seed to 'system time' in SAS
and
>in Stata... I think... and that worked well.
This will use your system time for the seed:
local holdseed = real(substr(c(current_time),1,2) +
substr(c(current_time),4,2) + substr(c(current_time),7,2))
set seed `holdseed'
gen random = uniform()
macro drop holdseed
Donovan Crew
*
* 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/