STEP 4: We need a random x-coordinate and a random y-coordinate.

  • Change the name of the first random variable to rand_x.
  • Set the range to values of -240 to 240.
  • Change the name of the second random variable to rand_y.
  • Set the range to values of -240 to 240.

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)