basic randomizer working