STEP 11: Let's now generate a random y-coordinate!

  • In , drag Random Integer inside your interval event.
  • Change the variable from my_var to y.
  • Change the integer on the left from 1 to -200 and the integer on the right from 10 to 200.

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)