Might I recommend javascript's sort() function? You pass it the name of a function which returns a value to prioritize objects in an array. So...
function random_sort (thing)
{
return (0.5 - Math.random() );
}
var things = [1, 2, 3, 4, 5, 6, 7];
things.sort(random_sort);
So, just pick the top three new items in things.
I'm pretty sure that if random_sort returns the same number, the first object to be sorted goes in first, so it's slightly biased toward the beginning... but don't quote me on that. Handy, though, no?