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 $$ in php?
How to track user logged out or not? When user is idle?
What is the use of isset() in php?
Can you define an array argument as a reference type?
Where can I find php ini file?
How we can retrieve the data in the result set of mysql using php?
Why delimiter is used in mysql?
What is the difference between php and core php?
Tell me how to create a session? How to set a value in session? How to remove data from a session?
How many ways there are to fetch the data from the Database?
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
what is difference between PHP4 , PHP5