Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getRandomFile($path){
- $files = $this->getFiles($path);
- $range_max = count($files);
- $index = $this->getRandom($range_max, 1);
- return $files[($index)];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement