Modified randomRule () to generate a greater variety of rules (and more bad rules overall)