Added samples
This commit is contained in:
@ -4,4 +4,5 @@ Use `Math.random()` to generate a random value, map it to the desired range usin
|
||||
|
||||
```js
|
||||
const randomInRange = (min, max) => Math.random() * (max - min) + min;
|
||||
// randomInRange(2,10) -> 6.0211363285087005
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user