第 4 步:现在我们有了 x 坐标,我们需要 y 坐标。

  • , 再次拖入Random Integer
  • 通过将1更改为-25010更改为-150来调整可能的随机数的范围。
  • 将变量从my_var重命名为y

注意: y 坐标的范围不同,因为我们不希望天空中有建筑物!

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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)