Constrained random points on a circle: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added the REXX language. -- ~~~~)
No edit summary
Line 1,203:
 
[[File:Points on a circle locomotive basic.png]]
 
=={{header|MAPLE}}==
a := table():
i := 1:
while i < 100 do
ba := (rand(-15 .. 15))():
bb := (rand(-15 .. 15))():
b := evalf(sqrt(ba^2+bb^2)):
if b <= 15 and b >= 10
then a[i] := [ba, bb]:
i := i+1:
end if:
end do:
plots:-pointplot(convert(a,list));
 
=={{header|Mathematica}}==