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:[EMAIL PROTECTED]]
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 
[EMAIL PROTECTED] 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to