STEP 10: Let's change the range of possible random values.

The two parameters in the random integer command tell the computer the range of numbers you want it to pick from. We have three possible options, so we'll have the computer choose a number between 1 and 3.

  • Change the second integer in .randint() to 3.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)