matrix-appservice-kakaotalk/matrix_appservice_kakaotalk/util/interval.py

8 lines
128 B
Python

import random
def get_interval(value):
if isinstance(value, list):
return random.randint(*value)
return value