This script creates n random numbers from 0 to x, with an expected value of n/2*x. Everything is printed on screen and compared in the end.
Current x is 10000 and n is 400.