第 4 步:让我们生成随机踢。

请记住, random .randint()命令会在指定范围内生成一个数字。

  • 在 LOGIC 中,转到并在循环中拖入Random Integer
  • 将第一个参数从1更改为-250 ,将第二个参数从10更改为0
  • 将变量名从my_var更改为random_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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)