Just press play and watch
It generates a random number from 1 to 1 million, and another ‘thing’ tries to guess it. The average is the average amount of operations required to find the answer.
Notes & Credits
Comment if you think that it could be improved. Ye