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

Is gender a dependent variable?

512


Does facebook use php framework?

558


What is csrf verification?

533


Is php better than java?

547


What is default session time in php?

522






Explain how to submit form without a submit button.

545


What is mean tnq

1085


Explain what is the main difference between require() and require_once()?

541


How to join multiple strings into a single string?

530


Explain how to run the interactive php shell from the command line interface?

556


How to turn on the session support?

575


Explain the differences between get and post methods?

500


Tell me how can I display text with a php script?

520


Explain type casting and type juggling.

562


Are react hooks stable?

521