Code: Select all
function thehopper() {
$length = 1;
$characters = 'BINGO';
$letter = $characters[mt_rand(1, strlen($characters))];
$draw = $letter . rand(1,100);
return $draw;
}
$draw = thehopper();
echo $draw;
Code: Select all
function thehopper() {
$alpha = str_split('BINGO');
shuffle($alpha);
$draw = implode('', array_slice($alpha, 0, 1));
$draw = $draw . rand(1,100);
return $draw;
}