game: added randomize function