Generate a random set of cards and sort them in ascending order. This program implements the bubble sorting algorithm.