开发者

How do you randomize a list in Clojure?

开发者 https://www.devze.com 2023-03-10 23:09 出处:网络
Given a seq, how do you return a seq with the same e开发者_运维知识库lements but in a random order?(shuffle [1 2 3 4 5])

Given a seq, how do you return a seq with the same e开发者_运维知识库lements but in a random order?


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

精彩评论

暂无评论...
验证码 换一张
取 消