Anonymous user
Constrained random points on a circle: Difference between revisions
Constrained random points on a circle (view source)
Revision as of 00:18, 10 September 2010
, 13 years agono edit summary
(Attempted a clearer task description) |
mNo edit summary |
||
Line 5:
1) Generate random pairs of integers and filter out those that don't satisfy this condition:
▲ :<math>10 \leq \sqrt{ x^2 + y^2 } \leq 15 </math>.
2) Precalculate the set of all possible points (there are 404 of them) and select randomly from this set.
|