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

How to get the http request in php?

757


How does csrf token work?

758


What websites use php?

710


What is the difference between core php and php?

680


What is boolean in php?

729


What does odbc do in context with php?

751


What is escaping to php?

721


What are the correct and the most two common way to start and finish a PHP block of code?

813


What is memcache?

707


What is php session_start() and session_destroy() function?

782


How to include a file to a PHP page?

749


What is difference between base_url and site_url?

696


What is properties of class?

778


Can php run without server?

734


What are the popular frameworks in php?

698