code: def random(game):
      '''
      Prefers moves randomly.
  
      :param Game game: game to play
      :return: None
      '''
      game.valid_moves = tuple(sorted(game.valid_moves, key=lambda _: rand.random())f random(game):
      '''
      Prefers moves randomly.
  
      :param Game game: game to play
      :return: None
      '''
      game.valid_moves = tuple(sorted(game.valid_moves, key=lambda _: rand.random()))
docs: Prefers moves randomly.
  
      :param Game game: game to play
      :return: None