hey. thanks,
but it doesnt answer my need.
Let's say i want to create a table of weight and height, and i want them to correlate with eachother so all BMI are 20-30.
For that i need to produce a RNORM() with the mean weight and SE (easy).
but then, not only that i need to produce aRNORM() for height, it needs to correlate to a certain degree with the weight variable. do you understand my question?
if i only could tell R to produce a 100 sample of weight values and then another 100 sample of heights that in the end correlate in __ (let's say, 0.4) with the previous vector