Where you have used the rand function you have not defined a minimum and maximum arguement, so rand(10, 25);
http://php.net/manual/en/function.rand.php
What? I disagree. I see little advantage of OO PHP other than a cleaner looking code.. nothing wrong with procedural - in my opinion.
I was never initially disputing OO PHP, I only pointed out your mistake.