i = 0; while (!deck.isInOrder()) { print 'Iteration ' + i; deck.shuffle(); i++; } print 'It took ' + i + ' iterations to sort the deck.'; Icons Twitter Facebook Instagram Github Actions Default Default Default Default