Update random generation