contact

just drop a message.

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