PageArray/WireArray


Getting Items

$a->findRandomTimed($n, $seed='Ymd')

Introduced in Version 2.3

Description

Get a quantity of random elements from this WireArray that always returns the same random items for the same $seed. If $seed is a string, it is considered a PHP date() string. If no $seed is provided, today's date is used to seed the random number. Meaning, the default behavior is that it returns the same random items for a period of 1 day.

$buildingsToday = $skyscrapers->findRandomTimed(3); 


Related

Post Comment