update snippets 96-107

This commit is contained in:
Stefan Feješ
2017-12-25 14:38:49 +01:00
parent bc58a5bf54
commit 5b23bade1c
11 changed files with 61 additions and 33 deletions

View File

@ -6,5 +6,8 @@ Use `Math.random()` to generate a random number and map it to the desired range,
```js
const randomIntegerInRange = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;
// randomIntegerInRange(0, 5) -> 2
```
```js
randomIntegerInRange(0, 5) -> 2
```