Introduction to Programming > Randomising and Sorting > Flashcards
how to randomize
create an ordered list
swap each element with a random index in the list (using temp arrays)
how to sort
take a list
for each element compare it with the next element. if that is lower, we swap their positions