shuffle the elements in an array without using method shuffle
A little program that simulates MongoDB in ruby