answersLogoWhite

0

Why are random numbers useful in PHP?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

Random numbers can be used for many different things.

Personally i use the rand() directive for security measures to define a session identifier.

Also i use the rand feature (sometimes) for user authentication while using captcha images.

basically, when you need a random number, use rand() ;)

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why are random numbers useful in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a random number and how are generated?

Random numbers that are generated by a computer are pseudo-random (not really random), but they will pass enough statistical tests for randomness to be useful in simulation random processes. Java has random number generators in the standard libraries. See the related link if you need more information.


Why are random numbers important?

Cause they r cause u neva no if dere come in useful cause it happend to me once


How can random numbers be generated in Java?

Random numbers can be generated in Java using the "random" class. One needs a single "random" object to generate a series of random numbers as a unit.


How do you get a random number from a group of numbers in C?

Random numbers cannot be generated programatically. For pseudo-random numbers use function 'rand'.


How do you pick a random value from a PHP array?

To pick random results from an array in PHP you will need to use the array_rand() function, you can select the amount of results you wish it too select too. <?php $array = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); $rand_results = array_rand($array, 3); // will select 3 random results from the array and store in a new array ?>


What is a Random Pattern?

A random pattern is random numbers going on forever


What is the meaning of 26?

http://www.ridingthebeast.com/numbers/nu26.php


Why all programmer used the php?

It is easy for coding and useful for many categories of websites.


How much in demand is php technology?

It depends on your work however Face book and MySpace both are coded in PHP. As PHP is used by a lot of programmers so you'll probably have to make quite useful and advanced programs in order to be in demand.


What this answer useful?

This is not a question - just four random words.


What is 435878212366?

Random numbers


Can you predict random numbers?

It depends, if the random numbers are generated by computer, they can always be predicted if we know the code. If they are picked from a hat, or by one of many other methods of picking truly random numbers, we cannot.