Processing math: 100%

Coding challenge

Write some code to find two random points in 3D space. Choose each to be between 0 and 1, that is (x,y,z) for the two points are random in 0x1, 0y1, and 0z1. What expected distance exists between the two points? (From Cheney, p. 590.)

Type your code here:

 
1

Lua reference

See your results here: