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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b333cc-2b1df.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b333cc-2b1df.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?