def _getRandomNumber(random, bits):
    if bits % 8:
        raise ValueError("bits (%d) must be a multiple of 8" % (bits,))
    return int_from_bytes(random(bits // 8), 'big')
Returns ID attribute of a category of this list.
dataset/ETHPy150Open twisted/twisted/twisted/conch/ssh/transport.py/_getRandomNumber--crossover with--dataset/ETHPy150Open idlesign/django-sitecats/sitecats/toolbox.py/CategoryList.get_id