def pick_random_value(self, value):
        if not value:
            return 0

        if len(value) == 1:
            return value[0]

        return random.randrange(value[0], value[1])
Pick a random value out of a range.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/reviews/management/commands/fill-database.py/Command.pick_random_value