Elements
i = 0;
while (!deck.isInOrder()) {
print 'Iteration ' + i;
deck.shuffle();
}
print 'It took ' + i + ' iterations to sort the deck.';
i = 0;
while (!deck.isInOrder()) {
print 'Iteration ' + i;
deck.shuffle();
}
print 'It took ' + i + ' iterations to sort the deck.';