Spaces:
Runtime error
Runtime error
File size: 192 Bytes
00ad456 |
1 2 3 4 5 6 7 8 9 10 |
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
|