PREVIEW: We have already created variables, used them to store user input, and used them as arguments! Today we are going to learn how to store random numbers in a variable, display their values on the stage, and use them to make a program that rolls dice.

  • Click Run at least three times. Notice which values on the stage change.
  • Click Submit and Next to move on.

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)