[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: creat random non-repeating
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/