- Random numerical range is designated
// random number between 2-32 the mt_rand (2, 32);
- Custom array of random
Colors $ = [ 'Red', 'Yellow', 'Blue', 'Green', 'Brown' ]; // Parameter 1: Random Array // Parameter 2: How many random key names specify a return // returns the key name $ the colorkey = array_rand ( $ Colors ,. 1 ); // through the return key to obtain the value $ Color = $ Colors [ $ the colorkey ];