Monte Carlo Methods are interesting algorithms that rely on random sampling to obtain numeric result (Wikipedia). Since today is Pi Day, we are going to design a Monte Carol method
Generate 50 random numbers and draw them as bars. Following the steps of selection sort algorithm and redraw the bar every single step to show how bubble sort works. Compare