Create a generic stochastic rule class