Example #1
0
 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
Example #2
0
 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
Example #3
0
 def __init__(self, randomQueue):
     self._a = list(randomQueue._a)  # Make a copy.
     stdrandom.shuffle(self._a)  # Shuffle it.
     self._i = 0
Example #4
0
 def __init__(self, randomQueue):
     self._a = list(randomQueue._a)  # Make a copy.
     stdrandom.shuffle(self._a)      # Shuffle it.
     self._i = 0