How can I generate a random alphanumeric string in clojure?

Viewed 420

I've been trying to write a script that creates a random alpha numeric of 20 letters and attaches it to the end of a link. I'm stuck on making the alphanumeric. Any help would be appreciated!

1 Answers
(apply str (repeatedly 20 #(rand-nth "abcdefghijklmnopqrstuvwxyz0123456789")))
Related