change randomizer to a class