Generate a random string based on rules defined in a clojure map