Hi, You could do:
(repeatedly 100 #(rand-int 10)) HTH, -- Laurent 2010/7/28 bOR_ <boris.sch...@gmail.com> > 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? > > -- > 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<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- 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