This quest looks good, but you made one mistake, a mistake that will force the same outcome each time the script is run. so no matter what, it will be almost impossible to get 80.
You didn't seed your random number generator, without seeding the generator the random outcome isn't really random at all, it comes out the same time each time it picks.
ex. a six sided die is rolled (int(rand(6)) 10 times, the outcome is
6
1
4
2
4
5
3
3
4
1
and if i run the script again guess what i get ?
6
1
4
2
4
5
3
3
4
1
so what you need to do is at the beginning of the script put in the line
srand($time|$$) this will put a number in the seeder based on the current server time making the number truly random.
__________________
Mess with the Jews, and we will take all your money
Grunties Rule
And with that... I end
Any Other Questions, please refer to the Following:
http://iliilllli1.netfirms.com
|