0
Help me please, is it possible to use random function at PHP?
2 odpowiedzi
+ 2
If you are seeking a function that generates a random number, then the rand() function will do the job.
see more here:
http://php.net/manual/en/function.rand.php
If you want to randomize an array, then the shuffle() function is what you need.
If, on the other hand, you want to randomize a string, then use the str_shuffle() function.
0
then when i want to using Fisher Yates Shuffle algorithm so what the best i can use?rand() or shuffle()?