Everytime you press the flag, ten new random digits betbeen -10 and 10 will be added to the array, and after waiting one second, the algorithm will sort the array. The method I'm using is the selection sort.