docs(typedoc): document function examples
This commit is contained in:
@@ -24,6 +24,12 @@
|
||||
* Uses Math.random(), which is not cryptographically secure
|
||||
* Returns only integers
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* // prints 66
|
||||
* console.log(randomInRange(1, 100))
|
||||
* ```
|
||||
*
|
||||
* @param min - minimum acceptable value
|
||||
* @param max - maximum acceptable value
|
||||
* @returns number [min; max]
|
||||
|
||||
Reference in New Issue
Block a user