generate random list by clicking green flag As the title says, this simply finds the smallest number now, if you were interested in finding the biggest or average number then you can easily change the target from smallest value to biggest or whatever value you are after. The code is pretty intuitive.