Fix randomness