I would like to generate N random points whose product is some value 1.
I did it in MATALB this way:
N_=10;
x1_=rand(1, N_);
p_=prod(x1_);
x_=x1_;
x_(end)=x1_(end)/p_;
prod(x_);
Is there a simple (other way)? And What about when P ~= 1?
Thanks.