1
0
Fork 0
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:
Nobuyoshi Nakada 2022-01-13 11:34:02 +09:00
parent d1a55851e8
commit 5a75151a01
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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.