def discard(self):
    if ((self.hand == None) or (len(self.hand) <= 0)):
        raise RuntimeError('No cards to discard')
    return self.hand.pop(random.randrange(len(self.hand)))
def discard(self):
    if ((self.hand == None) or (len(self.hand) <= 0)):
        raise RuntimeError('No cards to discard')
    return self.hand.pop(random.randrange(len(self.hand)))