It was late, that’s why I missed it, I think But thank you very much for answer.
1 Like
This rand(a..b)
is very useful and needed. It reminds Ruby
Using :rand
or :random
can be painful, because of lack of documentation.
@josevalim, incorporate this rand
in The Language and polish the docs
1 Like
As said above, it is already part of the language: Enum.random(1..3)
.
3 Likes
Ahh, ok. Inside Enum
. Thanks then
1 Like