Random numbers between -1 and 1 summing to 0
With R, how to generate n
random numbers x_1
, ..., x_n
that lie between -1
and 1
and that sum to 0
?
What about the generalization to another sum and another range?
With R, how to generate n
random numbers x_1
, ..., x_n
that lie between -1
and 1
and that sum to 0
?
What about the generalization to another sum and another range?
Comments
Post a Comment