This program is a demonstration of optimal stopping. https://en.wikipedia.org/wiki/Optimal_stopping The left list has questions marks holding the values of randomly generated numbers with your specifications. The program does not know what they are. It can pick as many values as it wants, but its choice is the always the last number it picks. If you were in the computer's place, and you got a large number, you probably wouldn't know whether to finish with that one, or keep going, hoping for a bigger one. Optimal stopping has many practical uses such as finding the best parking spot or even finding the best person to marry.
If it doesn’t get it right sometimes, that’s normal! Just try a few more times! There are 2 notes in the 'Notes and Credits' section.