You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[LeetCode] 478. Generate Random Point in a Circle #478
The input is two lists: the subroutines called and their arguments. Solution's constructor has three arguments, the radius, x-position of the center, and y-position of the center of the circle. randPoint has no arguments. Arguments are always wrapped with a list, even if there aren't any.
Activity
lld2006 commentedon Jan 27, 2020
https://stackoverflow.com/questions/5837572/generate-a-random-point-within-a-circle-uniformly
第一个回答很有启发性, 第二个回答前半段也很好, 后半段可以结合wikipedia看