O'Reilly logo
  • Pablo Defendini thinks this is interesting:

Extend the random number generator app to print to the console how many times the user guessed before guessing the correct random number.

From

Cover of Swift for Absolute Beginners

Note

done. Mostly it involved re-assiging values to variables. I wonder if there's a better way to do it?