RT @incre_ment@twitter.com

Probably trivial to the math folks, but recently learned that the correct way to uniformly distribute points in a circle is by generating coordinates in the following manner:
r = R*sqrt(random(1));
theta = random(TAU);

🐦🔗: twitter.com/incre_ment/status/


@bleeptrack did you compared to a poisson distribution? I know it's a good way to evenly distribute values in an surface, but i never implemented a function myself... After a quick research, i found a simple implementation here: math.stackexchange.com/questio
When i have to generate a fixed & non repetitive random sequence, i'm using this approach: m.youtube.com/watch?v=SxP30euw
It involves primes and it's really good.

@bleeptrack i have an implementation in ~python, let me know if you want it (gitlab is not working on my smartphone)
Btw, you're approach seems efficient! Congrats

Oh not my idea. Found this by incre_ment over at the bird site :)

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!