what method is used to generate a random number?

Answer Posted / lakhan lal

use rand() or mt_rand()

example:rand() or rand(20,30);

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between md5(), crc32() and sha1() crypto on php?

612


What is the use of extract function in php?

508


What is the difference between apache and tomcat?

530


What is composer used for?

512


Where is the submitted form data stored?

571






What is php and why we use it?

490


How do you use end in python?

485


which will print out the php call stack?

586


Explain some of the php string functions?

525


Declare a new variable in php equal to the number 3;

503


What is the use of "ksort" in php?

503


What are default session time and path?

559


What is different between software and app

1227


How the result set of mysql be handled in php?

594


How to check curl is enabled or not in PHP

629