fix naming
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
Use `Math.random()` to generate a random value, map it to the desired range using multiplication.
|
||||
|
||||
```js
|
||||
const randomInRange = (min, max) => Math.random() * (max - min) + min;
|
||||
const randomNumberInRange = (min, max) => Math.random() * (max - min) + min;
|
||||
// randomInRange(2,10) -> 6.0211363285087005
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user