diff options
| author | Jason Garber <8061+jgarber@users.noreply.github.com> | 2025-09-03 00:44:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 13:44:47 +0900 |
| commit | 01e27acbec4d8ce1b7a78f07dc8f9080f71854a9 (patch) | |
| tree | 51c8c7e5f39c7c9ea4ce6784ff5fbe75824d8c68 /test/ruby/test_stack.rb | |
| parent | de6df7508de397138e3a4d16469e7f35a8fe1b1e (diff) | |
[DOC] Clarify differences between Kernel.rand and Random.rand when given a Float `max`
* [DOC] Clarify differences between Kernel.rand and Random.rand
* `Kernel.rand` converts the `max` Float argument to Integer and returns Integer values
* `Random.rand` preserves the `max` Float argument and returns Float values
* Added examples demonstrating the behavioral differences
Diffstat (limited to 'test/ruby/test_stack.rb')
0 files changed, 0 insertions, 0 deletions
