import random


def random_query(allkeys, revealed):
    """Selects a uniform random range to query."""
    (a,ac), (b,bc) = sorted(random.sample(allkeys, 2))
    revealed.add(ac)
    revealed.add(bc)
    return a, b + 0.01