Console example that uses the RandomItemSampler