$('.linkler a').each(function(){ $(this).attr("href",$(this).attr("href")+"&r="+Math.floor((Math.random() * 99999))); });