Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 297 Bytes
(ns faker
(:refer-clojure :exclude (name)))
(def ^:private data (read-string (slurp (.getFile (clojure.java.io/resource "data.clj")))))
(defn first-name [] (rand-nth ((data :names) :first)))
(defn last-name [] (rand-nth ((data :names) :last)))
(defn name [] (str (first-name) " " (last-name)))