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 are the characteristics of php variables?
how to add file in php?
1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is having same cookie name and different values what will be the output if we echo the cookie name from those sites ? How can we solve this issue (How can we specify the domain name)?
What are the uses of php language?
How to insert an new array element in array?
What is polymorphism php?
How can you tell if a number is even or odd without using any condition or loop?
Which php framework is best for beginners?
What is $this in php?
What is the purpose of basename() function in PHP?
what are the errors and when we get that particular errors.and who will give that errors
how to run PHP in command line?
8 Answers InfoShore, Ramp Green, Xtreeme,