Eric Normand
Eric Normand

Reputation: 3836

How do you randomize a list in Clojure?

Given a seq, how do you return a seq with the same elements but in a random order?

Upvotes: 7

Views: 1417

Answers (1)

Eric Normand
Eric Normand

Reputation: 3836

(shuffle [1 2 3 4 5])
(3 2 4 5 1)

Upvotes: 30

Related Questions