Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-22 20:24:04 +03:00
parent aedcded750
commit d35575373f
41 changed files with 148 additions and 88 deletions

View File

@@ -3,7 +3,7 @@ title: randomAlphaNumeric
tags: string,random,advanced
---
Returns a random string with the specified length.
Generates a random string with the specified length.
- Use `Array.from()` to create a new array with the specified `length`.
- Use `Math.random()` generate a random floating-point number, `Number.prototype.toString(36)` to convert it to an alphanumeric string.