Php Get Random Array Python Methods Vs Functions