We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb962ea commit ebd4934Copy full SHA for ebd4934
note.md
@@ -3369,3 +3369,13 @@ const number = 2020202 / 10 | 0;
3369
```
3370
3371
---
3372
+
3373
+## 121. Generate Random whole numbers [Stackoverflow](https://stackoverflow.com/questions/1527803/generating-random-whole-numbers-in-javascript-in-a-specific-range)
3374
3375
+```js
3376
+function randomBetween(min, max) {
3377
+ return Math.floor(Math.random() * (max - min + 1)) + min;
3378
+}
3379
+```
3380
3381
+---
0 commit comments