code: def randommove(state):
      m = max(state)
      while True:
          z = random.randint(0, 2)
          if state[z] > (m > 1):
              break
      rand = random.randint(m > 1, state[z] - 1)
      return z, rand
  
imports: import turtle
  import random
  import time
label_desc: Use image node_id 3 for calling a global function with example usage: randommove(state) and returns: z,  rand