I created this code and it works fine, but I think it's ugly. Could you show me a better way to create a list of three different random numbers from 1 to 9?
class Baseball_Engine(object):
def __init__(self):
self.count = 0
self.random_number_list = [0, 0, 0]
while self.count < 3:
random_number = random.randint(1, 9)
self.random_number_list[self.count] = random_number
if self.random_number_list[self.count - 1] != random_number and self.random_number_list[self.count - 2] != random_number:
self.count += 1
print self.random_number_list