Hi.

(doc rand-int) says

"([n])
  Returns a random integer between 0 (inclusive) and n (exclusive)."

I think the word "integer" may cause some confusion, because it can be
interpreted as clojure integer - including int, long and BigInteger.

But the reality is with long or BigInteger n, rand-int does not work
properly.

How about changing doc string to clarify effective range of n?

--~--~---------~--~----~------------~-------~--~----~
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
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