$pricingRules->random()
Returns a new collection consisting of random elements, from the original collection, shuffled or ordered
$pricingRules->random(int $count = 1, bool $shuffle = false): Kirby\Toolkit\Collection
Parameters
| Name | Type | Default |
|---|---|---|
$count |
int |
1 |
$shuffle |
bool |
false |
Return type
Parent class
Wagnerwagner\Merx\PricingRules inherited from Kirby\Toolkit\Collection