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 |
How to get the http request in php?
What’s the difference between htmlentities() and htmlspecialchars()?
Explain me how to include a file to a php page?
What is Gd PHP?
How do you put a space in html?
How many days will it take to learn php?
Explain how you can update memcached when you make changes to php?
What is the use of htmlspecialchars in php?
hello.. i am b.tech 4th year student. i am confused that i should learning php or java. I have some knowledge of java and developed project in java, but i want to develop my career in php. So plz suggest me , i should go with php or java.
Explain about objects in PHP?
how can i get USA time using php...
How do I see how many pages per session in google analytics?