Php Get Random Array Python Definition Function