• Change the name of the random integer we created in the last activity to rand_x.
  • Go to and drag out another Random Integer and drop it inside the interval event.
  • Change its name to rand_y.
  • Change the parameters of both random integers to -225, 225.

Now both rand_x and rand_y will store a random number between -225 and 225.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("underwater") score = 0 score_board = codesters.Display(score) weak_pws = ["password", "password123", "hello1", "snuffles", "123456"] strong_pws = ["GgbvTa581!@", "@Mjrc0olguy!", "007jmSB0nd!", "108turt!es762", "Avv3SoMe!305"] all_pws = weak_pws + strong_pws # text = codesters.Text("text", x, y, "color") password = codesters.Text("password", 100, 200, "red") def interval(): # add any other actions... my_var = random.randint(1, 10) stage.event_interval(interval, 2)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)