How to generate a random circle in a large circle

clipboard.png

ask the masters how to generate a random circle in the circle. The random circle cannot exceed the boundary of the large circle


is the radius of the random circle fixed?


limit the coordinates of XQuery Y. Because it is a circle, it can be counted on one side

x minimum = > small circle radius
x maximum = > large circle diameter-small circle radius


clipboard.png

use rotate to change the angle, and then randomly change the y value of the small circle

Menu