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 |
Which is the best php framework for a beginner?
is 'easyphp' is compelete technology to design a phpmysql site?
What are global variables in php?
What are the current versions of apache, PHP, and mysql?
Is it possible to destroy a cookie?
How to replace a substring in a given string?
How to remove the new line character from the end of a text line in php?
Create a PHP web script with the following attributes: on start, three HTML form elements are shown: an string input field, a checkbox field, a dropdown/pull down list with 5 elements and a submit button. On submission, the form should be redisplayed (while remaining all options/inputs as the user has selected/entered them). Additionally, the selections/inputs of the user should be displayed in text. Please solve this without the use of any external libraries.
How to include variables in double-quoted strings in php?
Tell me what is the difference between ereg_replace() and eregi_replace()?
What are psrs?
What is the content of /etc directory?