Fixing random r