What other properties do you want these numbers to have?
How many do you need? If it is just uniqueness that you
want you might try random permutations of the integers
between 50 and 100. That you can do with Stata.
m.p.
Raphael Fraser wrote:
How do I generate random numbers between say, 50-100 that do not
repeat themselves? I have used the following code but this allow the
numbers to repeat themselves:
gen bsid=50*int(50*uniform()+0.5)
Any suggestions?
Raphael
*
* 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/