PHP Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thien
Forum Newbie
Posts: 1
Joined: Sat Apr 15, 2006 2:38 pm

PHP Help

Post by thien »

Alright, so I'm making my own PHP game.

I've got:
mt_rand(0 , 2500);

And I want to make $minerals equal to the number that mt_rand(0 , 2500); will generate. How do I do that?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

$minerals = mt_rand(0, 2500);
:?
Post Reply