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

st: RE: Creating a series of random number


From   "Farmer, Robert M" <[email protected]>
To   <[email protected]>
Subject   st: RE: Creating a series of random number
Date   Tue, 25 May 2004 10:26:28 -0400

It sounds as tho you want a series of random numbers with exactly the same number of digits.  If this is the case, the problem you run into will be dropping leading 0's.  You might have to generate the numbers, change them to characters, and select the proper number of digits to the right of the decimal. 


-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Ha Thai Son
Sent: Tuesday, May 25, 2004 9:03 AM
To: [email protected]
Subject: st: Creating a series of random number


Dear Statalists,

Does any one know how to create a series of random number with n digit.

Many thanks in advance,

Ha Thai Son
NIMPE Hanoi, Vietnam



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

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