eXorithm – Execute Algorithm: Discuss Algorithm magic8ball

Logo Beta

magic8ball     version 0.2     Ask the magic 8 ball your question.Subject: magic8ball

Haldan posted: Feb 22, 2012 04:57 am [reply]

function magic8ball() {
$answers = array(‘It is certain’, ‘It is decidedly so’, ‘Without a doubt’,
‘Yes – definitely’, ‘You may rely on it’, ‘As I see it, yes’,
‘ Most likely’, ‘Outlook good’, ‘Signs point to yes’, ‘Yes’,
‘Reply hazy, try again’, ‘Ask again later’,
‘Better not tell you now’, ‘Cannot predict now’,
‘Concentrate and ask again’, ‘Dont bet on it’,
‘My reply is no’, ‘My sources say no’, ‘Outlook not so good’,
‘Very doubtful’ );
$index = rand(0, count($answers));
return ($answers[$index]);

New Comment