Hi,
Trying to make a script to randomly choose between variables that I set in the script. Ideally I'm after something similar to this:
Is this possible? Obviously this doesn't work, but it's basically what I'd like to do.
Cheers
Trying to make a script to randomly choose between variables that I set in the script. Ideally I'm after something similar to this:
Code:
<?php
$1 = '1';
$2 = '2';
$3 = '3';
$4 = '4';
$5 = '5';
$pick = rand($1, $5);
echo $pick;
?>
Is this possible? Obviously this doesn't work, but it's basically what I'd like to do.
Cheers