Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### randomNumberInRange
|
||||
---
|
||||
title: randomNumberInRange
|
||||
tags: math,utility,random,beginner
|
||||
---
|
||||
|
||||
Returns a random number in the specified range.
|
||||
|
||||
@ -10,4 +13,4 @@ const randomNumberInRange = (min, max) => Math.random() * (max - min) + min;
|
||||
|
||||
```js
|
||||
randomNumberInRange(2, 10); // 6.0211363285087005
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user