what method is used to generate a random number?

Answers were Sorted based on User's Feedback



what method is used to generate a random number?..

Answer / lakhan lal

use rand() or mt_rand()

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

Is This Answer Correct ?    7 Yes 1 No

what method is used to generate a random number?..

Answer / 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

what method is used to generate a random number?..

Answer / senthilkumar g

using srand();
it will generate the randam numbers

Is This Answer Correct ?    3 Yes 0 No

what method is used to generate a random number?..

Answer / sunil kumar

<?php
echo(4,900);//depend upon ur choice
?>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How php statement is different from php script?

0 Answers  


What is the integer?

0 Answers  


What is php glob?

0 Answers  


What is the actually used php version?

0 Answers  


What is baseurl?

0 Answers  






Which database is best for php?

0 Answers  


How to convert strings to numbers in php?

0 Answers  


Which function Returns the time of sunrise for a given day / location in PHP.

0 Answers  


What is trim codeigniter?

0 Answers  


What does the array operator '===' means?

0 Answers  


What is meant by nl2br()?

3 Answers  


How to compare two strings with comparison operators in php?

0 Answers  


Categories