Generating random radii with equal area

Hellow fellow users,

I need to generate a grid of circles inside a defined rectangle. Each circle needs to have a randomized value as radius, but the summed area of each circle needs to equal 10% of the rectangle area.

In the code below I generate the circles with the same radius. The number of circles should be a variable parameter.

Thank you :slight_smile:

Prozentualer (13.1 KB)

Something like this?

Prozentualer (14.1 KB)

1 Like

That is exactly what I needed! Thank you very much! :^)

Prozentualer (18.1 KB)
I started to do a more generic solution, but it come out as a completely different thing… :rofl:

Awesome approach! Thanks for your effort! :wink: