STEP 7: Hm... Our city wouldn't be a city with just one building. Let's make another skyscraper.

  • In , drag in Random Integer, change 1 to -250 and 10 to 250. Rename the variable x.
  • Drag in another Random Integer, change 1 to -250 and 10 to -150. Rename the variable y.
  • Drag in one more Random Integer, change 1 to 50 and 10 to 300. Rename the variable height.


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)