Coding challenge

Given randomly chosen numbers, $x$ and $y$, in the interval $[a,b]$, write some code to find the expected value of $xy$? (Ans: $(a+b)^2/4$.)

Type your code here:


Lua reference

See your results here: