Commit 01e27ac
authored
[DOC] Clarify differences between Kernel.rand and Random.rand when given a Float
* [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 differencesmax
1 parent de6df75 commit 01e27ac
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
1555 | | - | |
| 1555 | + | |
| 1556 | + | |
1556 | 1557 | | |
1557 | | - | |
| 1558 | + | |
| 1559 | + | |
1558 | 1560 | | |
1559 | 1561 | | |
1560 | 1562 | | |
| |||
1692 | 1694 | | |
1693 | 1695 | | |
1694 | 1696 | | |
1695 | | - | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
1696 | 1700 | | |
1697 | 1701 | | |
1698 | 1702 | | |
| |||
0 commit comments