Jump to content

Random Variables + Storing Pokémon Data + Adding To Intergers


Cless

Recommended Posts

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.

 

-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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.