Created
November 30, 2012 16:45
-
-
Save dbasch/4176894 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns closearch.words | |
(:use [clojure.string :only (split)])) | |
(def dict (split (slurp "/usr/share/dict/words") #"\n")) | |
(defn -main[& args] | |
(dotimes [n (#(Integer/parseInt %) (first args))] | |
(spit (str "text/file." n) (apply str (interpose " " (take 5000 (shuffle dict))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment