random ruleset generation