Hi,

I am quite new to STATA and my issue might be easy to solve.

I created a list of random numbers using

Code:
set obs 10000
generate X = runiform(0,1000)
Now I would like to draw n samples of this list, each with 100 observations. For each sample, a new variable should be created. The samples should be independently drawn, so with replacement. I tried
Code:
bsample 100
however the population (e.g. my list of 10,000 random numbers) is deleted each time a sample is drawn and I couldn't find a way yet to define a variable for each sample.

Thanks!