Coding challenge

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:

Type your code here:

Lua reference

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: