🏆Question🏆 Differece between rand() and srand() function in php 🥇 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

🏆Question🏆 Differece between rand() and srand() function in php 🥇

with help of php code to differentiate rand() and srand() function 👍✌️

20th Dec 2017, 7:32 AM
Harshad Gare
Harshad Gare - avatar
1 Answer
+ 3
As far as I know, srand () is not used in newer versions of PHP. The reason is that the rand () function now is seeded automatically
20th Dec 2017, 8:05 AM
Mickel
Mickel - avatar