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.
7.7m questions
10.3m answers