>>143
> r=(random()**2+random()**2)**0.5
> if r<1:

わざわざ "**0.5" してる意味が無いです。 お
r=(random()**2+random()**2)
で十分。 お