Layout E (with C as starter)

$total = count($links); $i = rand(0,$total-1); ?>