Fix random seed
This commit is contained in:
parent
75d4543e3d
commit
54e742aa16
2
run.py
2
run.py
|
@ -99,7 +99,7 @@ def update_display(display, dbi):
|
|||
display.info_2.set(delay_text)
|
||||
elif train_type == "S":
|
||||
# Random train length indicator for S-Bahn
|
||||
random.seed(train['train'])
|
||||
random.seed(train['trainNumber'])
|
||||
train_length_pos = random.randint(36, 45)
|
||||
display.info_2.set(MAP_INFO_2[train_length_pos])
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue