Constrained random points on a circle: Difference between revisions

m
→‎{{header|REXX}}: corrected an operator in the heading
m (→‎{{header|REXX}}: corrected an operator in the heading)
Line 1,892:
===without aspect adjustment===
No aspect adjustment is done in version of the REXX program.
<lang rexx>/*REXX program gens 100 random points in an annulus: 10 ≤ √(x²≤y+y²) ≤ 15 */
parse arg points low high . /*allow parms from command line. */
if points=='' then points=100
Line 1,955:
===with aspect adjustment===
Aspect adjustment is done in this version of the REXX program.
<lang rexx>/*REXX program gens 100 random points in an annulus: 10 ≤ √(x²≤y+y²) ≤ 15 */
parse arg points low high . /*allow parms from command line. */
if points=='' then points=100
2,299

edits