Created
September 10, 2016 08:17
-
-
Save kiang/4d296a60c9d9d7495df4706193498e7f to your computer and use it in GitHub Desktop.
bingo script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$white = array('tim', 'carol', 'jean', 'kelly', 'hong', 'renn',); | |
$list = array( | |
'merace', 'nasu', 'shiting', | |
'rick', 'jessica', 'ranchou', | |
'unwar', 'galen', | |
); | |
shuffle($list); | |
$listCount = count($list); | |
for($i = 1; $i <= $listCount; $i ++) { | |
$c = $i - 1; | |
sleep(1); | |
if($listCount === $i) { | |
echo " >>> " . $list[$c] . " \n"; | |
} else { | |
echo $list[$c] . "\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment