what method is used to generate a random number?

Answers were Sorted based on User's Feedback



what method is used to generate a random number?..

Answer / lakhan lal

use rand() or mt_rand()

example:rand() or rand(20,30);

Is This Answer Correct ?    7 Yes 1 No

what method is used to generate a random number?..

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

what method is used to generate a random number?..

Answer / senthilkumar g

using srand();
it will generate the randam numbers

Is This Answer Correct ?    3 Yes 0 No

what method is used to generate a random number?..

Answer / sunil kumar

<?php
echo(4,900);//depend upon ur choice
?>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is $$ in php?

0 Answers  


How to track user logged out or not? When user is idle?

0 Answers  


What is the use of isset() in php?

0 Answers  


Can you define an array argument as a reference type?

0 Answers  


Where can I find php ini file?

0 Answers  


How we can retrieve the data in the result set of mysql using php?

0 Answers  


Why delimiter is used in mysql?

0 Answers  


What is the difference between php and core php?

0 Answers  


Tell me how to create a session? How to set a value in session? How to remove data from a session?

0 Answers  


How many ways there are to fetch the data from the Database?

2 Answers   Tops Technologies,


write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.

0 Answers  


what is difference between PHP4 , PHP5

0 Answers   Net Solution,


Categories