updated randomize expected