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 php mainly used for?
How to specify argument default values?
How can we extract string 'abc.com' from a string "http://info@abc.com" using regular expression of PHP
What is the difference between array_map () and array_shift ()?
What is mean tnq
What is the meaning of "enctype= multipart/form-data" ?
What the use of var_dump()?
In php how can you jump in to and out of "php mode"?
where do we use htaccess?
How to Retrieve video files in php from database.....and how to store video on database..
How can we submit a form without a submit button?
23 Answers ABC, HCL, Infosys, Kept Bug, Panys, Rushmore Consultancy, Torque Infotech, Wipro, zCon Solutions,
Is learning php easy?