what method is used to generate a random number?

Answer Posted / mahidhar

using rand() function we generate the random numbers.

example : $num="12345678";
$result=rand($num);

the $result gives the random numbers.

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is implode() in php?

602


Tell us how to create an array of a group of items inside an html form?

557


What is data structure in php?

497


What is ci framework in php?

494


What is $_ get?

525






What do you use php for?

523


What are session variables in php?

516


Tell me what is the definition of a session?

544


How to create an array in php?

539


What is the use of imagetypes() method?

529


Is php dead 2019?

536


What is mvc php?

511


Do loops php?

512


Tell me how to retrieve a cookie value?

524


What is difference between mysql_connect and mysqli_connect?

495