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.

Link to comment
Share on other sites

 

-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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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