import random


def get_random_topic(num_bits=24):
    """Returns a random integer with a specified number of bits.

    Args:
        num_bits (int): Number of bits in the integer.

    Returns:
        int: Integer with the specified number of bits.
    """

    return random.getrandbits(num_bits - 1) + (1 << (num_bits - 1))