The missing line would be x+= num
This means that every time a number is selected from the range it is added to the value of x.
6.0m questions
7.9m answers