Added the randomize method