Random sampling for history