Skip to content

Instantly share code, notes, and snippets.

@kiang
Created September 10, 2016 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiang/4d296a60c9d9d7495df4706193498e7f to your computer and use it in GitHub Desktop.
Save kiang/4d296a60c9d9d7495df4706193498e7f to your computer and use it in GitHub Desktop.
bingo script
<?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