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 agoAttempted a clearer task description
m (→{{header|Perl 6}}: formatting, omit useless semicolons) |
(Attempted a clearer task description) |
||
Line 1:
{{task|Probability and statistics}}
There are several possible approaches
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.
=={{header|D}}==
|