On 28 July 2010 09:24, bOR_ <boris.sch...@gmail.com> wrote: > Hi all, > > I have the nagging feeling that I'm missing a simple solution. Say I > want a list of a 100 rand-int 10 numbers. Currently, I create that by > doing (map (fn [_] (rand-int 10)) (range 100)). Is there an easier > way?
I think Laurent's answer is better, but this also works: (for [i (range 100)] (rand-int 10)) -- Michael Wood <esiot...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en