Fixed Randomize and output