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