getLast(); $news->write(); $limit = POSTI; $extracted = array(); for($i=1;$i<=$limit;$i++){ $toshow = rand(1,8); if(in_array($toshow,$extracted) === true){ $i--; continue; } $extracted[] = $toshow; include('thumbprodotti.php'); } ?>