Cless Posted June 30, 2007 Share Posted June 30, 2007 Hello, I love to ask questions. Argh. Guess that's part of learning. Heh... Err, my questions. -How do you set a variable to a random number between two numbers? Such as, setting the variable $var to a random number between 1 and 5. -Yup. Pokémon. Sounds stupid, however, we have interests. So, like, how should I store Pokémon Data? (Pokémon are like creatures or monsters. The closest things possible to it are Monster Rancher, Digimon, and Demikids). It's more than likely going to be stored in a table... yet, I don't see how it could be really possible. -Okay, I have a field called "Money". How would I add or subtract numbers from that field? Thanks. Link to comment https://forums.phpfreaks.com/topic/57852-random-variables-storing-pok%C3%A9mon-data-adding-to-intergers/ Share on other sites More sharing options...
metrostars Posted June 30, 2007 Share Posted June 30, 2007 -How do you set a variable to a random number between two numbers? Such as, setting the variable $var to a random number between 1 and 5. $var = rand(1, 5); -Yup. Pokémon. Sounds stupid, however, we have interests. So, like, how should I store Pokémon Data? (Pokémon are like creatures or monsters. The closest things possible to it are Monster Rancher, Digimon, and Demikids). It's more than likely going to be stored in a table... yet, I don't see how it could be really possible. -Okay, I have a field called "Money". How would I add or subtract numbers from that field? Thanks. I'll help you on MSN if you wish. MY address is in my profile. Link to comment https://forums.phpfreaks.com/topic/57852-random-variables-storing-pok%C3%A9mon-data-adding-to-intergers/#findComment-286644 Share on other sites More sharing options...
Cless Posted June 30, 2007 Author Share Posted June 30, 2007 Oh, I see. Easy enough. Okay, I will. Thanks. Link to comment https://forums.phpfreaks.com/topic/57852-random-variables-storing-pok%C3%A9mon-data-adding-to-intergers/#findComment-286645 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.