mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] Mark up the code for Kernel#rand as the same as Random#rand
This commit is contained in:
parent
d1a55851e8
commit
5a75151a01
1 changed files with 1 additions and 1 deletions
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.
|
||||
|
|
Loading…
Reference in a new issue