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

8 lines
128 B
Python
Raw Permalink Normal View History

2022-02-25 02:22:50 -05:00
import random
def get_interval(value):
if isinstance(value, list):
return random.randint(*value)
return value