I used CasTur's double pendulum simulation and then made it so the trails that are left behind will stay (Instead of disappearing). Click the green flag to randomize the position and clear the pen. Try with turbowarp + Turbo Mode! https://turbowarp.org/809862865 Click space to show variables.
Credit to @CasTur for his Double Pendulum simulation project. BE SURE TO CHECK OUT HIS OTHER AMAZING MATHEMATICAL PROJECTS!!! Follow him too, 'cause I said so.