Ratcheting probability

It would be great to have a ratcheting probability feature and to be able to randomize the number of ratchets.

l will add this as a feature request on github.