A::random()
Returns a number of random elements from an array, either in original or shuffled order
Parameters
Name | Type | Default |
---|---|---|
$array * | array |
– |
$count | int |
1 |
$shuffle | bool |
false |
Return type
array