Fully renamed and updated everything, tagged, built
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
### Array sample
|
||||
### sample
|
||||
|
||||
Returns a random element from an array.
|
||||
|
||||
Use `Math.random()` to generate a random number, multiply it with `length` and round it of to the nearest whole number using `Math.floor()`.
|
||||
This method also works with strings.
|
||||
|
||||
Reference in New Issue
Block a user