what method is used to generate a random number?
Answers were Sorted based on User's Feedback
Answer / lakhan lal
use rand() or mt_rand()
example:rand() or rand(20,30);
| Is This Answer Correct ? | 7 Yes | 1 No |
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 |
Answer / senthilkumar g
using srand();
it will generate the randam numbers
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sunil kumar
<?php
echo(4,900);//depend upon ur choice
?>
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of htmlentities in php?
Tell me what is the use of mysql_real_escape_string() function?
How to redirect https to http url through .htaccess?
How to create and destroy cookies in php?
What interest would a "work-for-ownership" offer receive from PHP/MySQL developers?
Is it possible to extend the execution time of a php script?
What is strcmp () in php?
Explain what does the unset() function means?
What the limitation of header() function in php?
What is filter_var?
What are objects in php?
What are the advantages of triggers in php?