def __str__(self): a = list(self._a) # Make a copy stdrandom.shuffle(a) # Shuffle it. s = '' for item in a: s += str(item) + ' ' return s
def __init__(self, randomQueue): self._a = list(randomQueue._a) # Make a copy. stdrandom.shuffle(self._a) # Shuffle it. self._i = 0