echo $items[array_rand($items)];
More Related Contents:
- An algorithm for Random Number Pair Generation [closed]
- PHP random string generator
- How to generate a random, unique, alphanumeric string?
- Generating random results by weight in PHP?
- Secure random number generation in PHP
- Generating a random password in php
- How to get random value out of an array?
- Generating (pseudo)random alpha-numeric strings
- MySQL: Select Random Entry, but Weight Towards Certain Entries
- Laravel – Eloquent or Fluent random row
- Generating random numbers without repeats
- best practice to generate random token for forgot password
- Generate random 5 characters string
- How to generate random 64-bit value as decimal string in PHP
- How to create a random string using PHP?
- What is the best way to generate a random key within PHP?
- What’s the disadvantage of mt_rand?
- Efficiently pick n random elements from PHP array (without shuffle)
- Difference between mt_rand() and rand()
- Algorithm for generating a random number
- Random Float between 0 and 1 in PHP
- Generate cryptographically secure random numbers in php
- How random is PHP’s shuffle function?
- str_shuffle and randomness
- How do I select 10 random things from a list in PHP?
- php random x digit number
- MySQL ORDER BY rand(), name ASC
- Pull random line from TXT file as string
- In PHP, how do I generate a big pseudo-random number?
- How to generate random password with PHP?