tags:

views:

291

answers:

2

Or is there a ready function there?

+6  A: 

Put the numbers in an array and use:

$selectrand = array_rand($arrayname, 5);
gclaghorn
A: 

Try this:

$randomnumber = (rand()%$num);
Secko