STEP 3: Time to get started on our first random building!

We can position things randomly on the stage by creating a random number between -250 and 250.

  • In LOGIC, click on , and drag in Random Integer.
  • Adjust the range of possible random numbers by changing 1 to -250 and 10 to 250.
  • Rename the variable from my_var to x.

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)