Constrained random points on a circle: Difference between revisions

m
m (→‎{{header|RPL}}: solved picture display bug)
 
Line 1,052:
 
=={{header|EasyLang}}==
[https://easylang.dev/show/#cod=bY7NDoJADITvPMV3VIhkF4MnfBiCGDfhJ64E4e2Zit7soelMZ6Z9P0LX0gwTFd65BFi4EuvhNvacPSf8xdj1LxvFvp5x4rCQyplJl7IebRfuSqSSDfnUNfrSNiq7mAl/YT/OLaWT33KKfbSo4qcPsdGjH32e5Bs=bY0xDsIwFEP3nOKN0Igqv6hMzWGqtohIJYhPBMntUShsbLafZb8uYV2YYmJAnDNAxqNjnENMHIUDcqpx+R8rnsddE7tMQ8ZSaCj7ysIZcQweZYwzWqX0lcDn03rka6+350LvsNSdbpN1qvv1g07rsvVb05o3 Run it]
 
<syntaxhighlight>
while cnt < 100
x = randomrandint 31 - 16
y = randomrandint 31 - 16
r = sqrt (x * x + y * y)
if 10 <= r and r <= 15
2,041

edits