Depends on exactly what you want to do. Do you just want a number to show the user? Or do you want a number to show the user and put in a database? All you seem to be doing is displaying it.
Also, in PHP versions later than 4.2, there is no need to call srand().
But if it is doing the job, is it not the right way for you? :-)
-Snib
Where will you be in 100 years?
Try new FreshView 0.2!
There are only two stupid questions: the one you
can't find the answer to and
don't ask, and the one that you
can find the answer and
do ask.