зеркало из https://github.com/github/ruby.git
[DOC] Mark up the code for Kernel#rand as the same as Random#rand
This commit is contained in:
Родитель
d1a55851e8
Коммит
5a75151a01
2
random.c
2
random.c
|
@ -1622,7 +1622,7 @@ rand_mt_equal(VALUE self, VALUE other)
|
|||
* rand(100) #=> 12
|
||||
*
|
||||
* When +max+ is a Range, +rand+ returns a random number where
|
||||
* range.member?(number) == true.
|
||||
* <code>range.member?(number) == true</code>.
|
||||
*
|
||||
* Negative or floating point values for +max+ are allowed, but may give
|
||||
* surprising results.
|
||||
|
|
Загрузка…
Ссылка в новой задаче