Hi, bOR_
Yes, there is easier variant:
(repeatedly 100 #(rand-int 10))

On Wed, Jul 28, 2010 at 10:24 AM, 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?
>
> --
> 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

Reply via email to