<gh_stars>100-1000
import random

class RandomAgent(object):

    def __init__(self, player):
        self.player = player
        self.name = 'Random'

    def get_action(self, moves, game=None):
        return random.choice(list(moves)) if moves else None

import random

class RandomAgent(object):

    def __init__(self, player):
        self.player = player
        self.name = 'Random'

    def get_action(self, moves, game=None):
        return random.choice(list(moves)) if moves else None