Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: creat random non-repeating


From   Vincent Davis <[email protected]>
To   [email protected]
Subject   st: creat random non-repeating
Date   Sat, 8 Mar 2008 13:32:50 -0700

I am trying to make a variable with random non-repeating integer obs in the range a to b.
Any suggestions
Thanks
Vincent
Like this, where var1 is random non-repeating over the range 1-20
OBS Var1
1 4
2 7
3 2
4 20
5 12
6 15
7 18
8 17
9 11
10 1

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