Adding randomize_outputs method