RE: [PHP] Random PowerBall Generator
| From: | Jerry Lake | Date: | Wed, 22 Aug 2001 23:54:28 +0000 |
| Subject: | RE: [PHP] Random PowerBall Generator | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63983@lists.php.net to get a copy of this message | ||
if array_unique does what I think,
The biggest problem with that
is that Powerball being a reasonable
semblance of random, does allow non-unique series
to be selected. i.e. the powerball can be the
same as one of the other five.
Jerry Lake
Interface Engineering Technician
-----Original Message-----
From: Montz, James C. (James Tower) [mailto:JCMontz@jamestower.com]
Sent: Wednesday, August 22, 2001 2:00 PM
To: Php-General (E-mail)
Subject: [PHP] Random PowerBall Generator
More as an exercise to get back into the swing of PHP, I have created the
PowerBall number generator. (for those of you un-aware, the powerball is at
$200 mil).
Took me a while to figure out using arrays, and the array_unique function.
It also incorporate the imagepng function.
Thanks to CC Zona for pointing me to the function I needed to get the job
done!
The page is at http://www.usrlinux.com/pball.php
Source code is available for viewing. Suggestions on cleaning up code
welcome.
Enjoy!
James
___________________________
James C. Montz
James Tower
http://www.jamestower.com
jcmontz@jamestower.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net