Quote Originally Posted by Krash005 View Post
But, I don't know what that means. How does the swap code know what the array's random values were? It looks like it's just dealing with the array's integers, not the random values for each integer.
Can't make any sense of the above statement but you might be better off first reading up on it before trying to decipher its code.
Check out the tutorial posted on this site's faq for the theory behind bubble sort.