Starting random input generator

This commit is contained in:
Denis Merigoux 2022-09-23 16:22:03 +02:00
parent 8dd45788a6
commit 2460dffe3f
No known key found for this signature in database
GPG Key ID: EE99DCFA365C3EE3

View File

@ -0,0 +1,12 @@
import random
from input import CnafSimulatorInput
def generate_random_input() -> CnafSimulatorInput:
zone = random.randint(1, 3)
if zone == 1:
code_postal = "75000"
elif zone == 2:
code_postal = "69000"
else: # zone == 3
code_postal = "46800"