Implement an online version of Knuth shuffle by following wikipedia's instruction.