Here is my thing. Each element in the list has its own range.
{RandomReal[{0, 1}], RandomReal[{0, 2 Pi}]}
This code alone can only generate a point. Is it possible to generate 10 random points?
Transpose[{RandomReal[{0, 1}, 10], RandomReal[{0, 2 Pi}, 10]}]
I found this one that works at the code above. Is there anyone who can achieve that but much more elegant than me?
{#, 2 Pi #2} & @@@ RandomReal[{0, 1}, {10, 2}]
? $\endgroup$RandomReal
s in one go is highly optimized in Mathematica. $\endgroup$ScalingTransform[{1, 2 Pi}] @ RandomReal[{0, 1}, {10, 2}]
? $\endgroup$Function[{n}, Transpose[RandomReal[{0, #}, n] & /@ {1, 2 \[Pi]}]][10]
is 10 times faster than theScalingTransform
solution (and the first one @kglr posted is actually really inefficient.) $\endgroup$