This is a small experiment of mine It calculates the average distance between every possible combinations of 2 points in a square It's kinda limited because Scratch doesn't allow lists to have more than 200,000 items I researched the actual answer, and this comes within 2 decimal places
Inspired by a cool maths video on Youtube https://www.youtube.com/watch?v=i4VqXRRXi68 I tried to make a visual demonstration how this worked but it made it run too slow. I have added comments in the code to explain how it works