Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WhosyVox authored Jun 1, 2024
1 parent e21f365 commit cb9628f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ As of today the main way to generate a random number (outside of library inclusi

The common pattern for an integer is `Math.floor(Math.random()*(maxValue-MinValue)+maxValue)`. This is, at best, cumbersome.
This proposal would tidy it up to something closer to `Random.integerBetween(minValue,maxValue)`.

(This is akin to how we can use `Array.at(-1)` rather than `Array[Array.length-1]` to convey the intent of the code.)


Expand Down

0 comments on commit cb9628f

Please sign in to comment.