What about this
You break the exercise into 2 parts, the first part just calculates the random number and places it into slot 0 of the array. Then you run the loop but start $i at a value of 1.
<?php
$highest = 30;
$numads = 5;
srand((double)microtime()*1000000);
$random=rand(1,$highest)...