Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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