_.random
Returns a random element from an array
_.random(array, start?, end?)
Parameters:
array [array]:
the array with the elements
start?:
sets the minimum random index
end?:
sets the maximum random index
Example:
Last updated