Sorry it was very late and I was concentrating on getting the subcategories included and forgot the point of the global!
Try adding
@output = sort {return (rand > 0.5) ? 1 : -1;} @output;
splice (@output,5);
just before your return line.
Laura.
The UK High Street
Try adding
@output = sort {return (rand > 0.5) ? 1 : -1;} @output;
splice (@output,5);
just before your return line.
Laura.
The UK High Street