Jump to content

Choose Random Result Out of Series of Pickable Results Then Display That 1Result


CloudSex13

Recommended Posts

I have a file called pick.php.

 

pick.php, in example, would look like this as a link on the page:

 

pick.php?place=2

 

Let's say 2 is a casino-like outcome. When this link is clicked, I want there to be a random selection of what is displayed on the page pick.php, in example, "You got Casino Outcome 5." or "You got Casino Outcome 10." - as many as I needed to put. So basically, in pick.php, they'll need to be a random generator as to what the results picked will display when the pick.php?place=2 link is accessed.

 

My problem is that I lack the knowledge of how to script a random results generator, because the rand() function only handles integers and variable integers to my knowledge. Could anyone give me a tip or point me in the right direction to accomplish my coding goal?

 

Thank you very much, if so.

 

 

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.