randomize(L) works; main has been edited as appropriate.