optimized random rules