I want to generate an array with random numbers. I don't want the same value to appear twice in the array. I want all five values to be unique. How would I do this?
$rand1 = rand(1, 50);
$rand2 = rand(1, 50);
$rand3 = rand(1, 50);
$rand4 = rand(1, 50);
$rand5 = rand(1, 50);
$input = array($rand1,$rand2,$rand3,$rand4,$rand5);
print_r($input);