ShapERailwayAppv2 / utils.py
GRATITUD3's picture
Duplicate from GRATITUD3/ShapERailwayApp
31c61a3
raw
history blame contribute delete
192 Bytes
import random
from settings import MAX_SEED
def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
if randomize_seed:
seed = random.randint(0, MAX_SEED)
return seed