The Python Oracle

Trying to generate random x,y coordinates within a ring in python

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Meadow

--

Chapters
00:00 Question
01:17 Accepted answer (Score 8)
01:46 Answer 2 (Score 6)
02:08 Answer 3 (Score 5)
02:55 Answer 4 (Score 3)
03:24 Thank you

--

Full question
https://stackoverflow.com/questions/4191...

Accepted answer links:
[How it works for the circle]: http://mathworld.wolfram.com/DiskPointPi...
[image]: https://i.stack.imgur.com/sPU0E.gif

Answer 2 links:
[uniform distribution in a circle]: https://math.stackexchange.com/questions...

Answer 4 links:
[image]: https://i.stack.imgur.com/6oxth.png

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python27 #numpy #math

#avk47