4 ms·
This will give you a random distribution, but not a uniform one. Concrete description why: you're just as likely to end up 3 units from the center as 6 units fr
by Misdicorl 8y ago
This will give you a random distribution, but not a uniform one. Concrete description why: you're just as likely to end up 3 units from the center as 6 units from the center. However, there is twice as much space that is 6 units from the center than 3 units from the center.
- MRD85 8y agoThanks, makes perfect sense and should have been obvious.
- MRD85 8y agoI thought about this for a little bit, I might actually code up a demo. If you take a random number between the square of min and the square of max, then you make your polar r equal to square root of your random number.
- Misdicorl 8y agoYup, this works in 2d.