returns a random name from the class

def get_random_choice(self):    
        """
        returns a random name from the class
        """
        i = random.randint(0,len(self.dat)-1)
        return self.dat[i]['name']