FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Randomizer





foumy6
Anybody have a php randomizing code or anything that they are willing to share with me?? I am working on a couple of side projects and I am still learning all my coding stuff I know the basics so no need to explain that please help if you can Smile I am making a little quick rpg just for the lol game I just don't want it where u clikc one of the a b or c choices that is does the smae thing everytime time you clikc on it because then people could just memorize it i want a randomizer so that they cant i hope this helps a bit more Smile
sonam
You have all function on php.net and without specific problem it is quite heavy to answer on your question. Independent of what do you want to rand you can use some of this functions below.

http://php.net/manual/en/function.rand.php
http://php.net/manual/en/function.array-rand.php
http://php.net/manual/en/function.shuffle.php

Sonam
kacsababa
Or there is mt_rand() al alternative to rand() too.
And sonam is right, it's hard to go into the subject when we don't know what should be randomized.

Just a plus thought, when we talking about randomization you mean mathematical, computer generated randomization, yes? Which is not real random ofcourse, but real random is very much beyond the scope of php. Smile But if you do want real random, then for example random.org could help you...
Related topics
problem with a php randomizer script
Free Stock photo site | useful |
Scripts
I have some scripts but don't know what to do with them?
Making A PHP sig...
Think this would be of use?
New Income Builder
Randomizing images..
Layers of the mind
need html code tht will randomly change a pic/text plz help
Retrieving Loads of Info Efficiently
500Frih$ for random feed entries
Why doesn't my suggestions box work?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.