RANDOM: Let's use our math equations and random numbers to create some random math!

  • Let's generate random values for random_int_1 and random_int_2 and do some math with them!
  • Replace the value of random_int_1 with this code: random.randint(1, 1000)
  • Replace the value of random_int_2 with this code: random.randint(1, 50)
  • Click Run a few times to see different results! Does the math look correct?

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)