Write some code that computes the average distance between two random points on different sides of a square that has a side length of 1. (Ans: 0.869...) (Ref: http://mathworld.wolfram.com/SquareLinePicking.html.)← Back to challenges | Lessons

Run Share Lua reference