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

st: set seed & rndpoi


From   Benoit Dulong <[email protected]>
To   statalist <[email protected]>
Subject   st: set seed & rndpoi
Date   Sat, 30 Aug 2003 08:34:01 -0400

**********************************************************************
set seed 261754006
rndpoi 10 25

and

set seed 261754006
rndpoi 10 25

do not produce the same numbers ?

Is this normal ?

**********************************************************************
* EXAMPLE

. clear

. set obs 10
obs was 0, now 10

**********************************************************************

. set seed 261754006

. rndpoi 10 25
Variable xp created.

. list

             xp
  1.         24
  2.         32
  3.         26
  4.         26
  5.         29
  6.         17
  7.         27
  8.         22
  9.         28
 10.         30

**********************************************************************

. set seed 261754006

. rndpoi 10 25
Variable xp created.

. list

             xp
  1.         30
  2.         31
  3.         28
  4.         29
  5.         28
  6.         23
  7.         30
  8.         24
  9.         22
 10.         30

**********************************************************************

Thank you
Benoit Dulong

*
*   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