CloudSex13 Posted May 20, 2009 Share Posted May 20, 2009 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. Link to comment https://forums.phpfreaks.com/topic/158856-choose-random-result-out-of-series-of-pickable-results-then-display-that-1result/ Share on other sites More sharing options...
CloudSex13 Posted May 20, 2009 Author Share Posted May 20, 2009 ...anyonee? :/ Link to comment https://forums.phpfreaks.com/topic/158856-choose-random-result-out-of-series-of-pickable-results-then-display-that-1result/#findComment-838152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.