Something like this maybe...
$num1 = rand(0,5);
$num2 = rand(0,5);
$num3 = rand(0,5);
$num4 = rand(0,5);
$num5 = rand(0,5);
array($num1, $num2, $num3, $num4, $num5);
Granted that probably isn't the best way to go about it, but it'll work 🙂
Obviously that code doesn't stop the rand() function from returning a certain number more than once. Therefore, if you don't mind the possibility of having a certain number more than once, that code will do fine for you 🙂
Regards, Stezz.