mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-19 16:28:12 +03:00
Starting random input generator
This commit is contained in:
parent
8dd45788a6
commit
2460dffe3f
@ -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"
|
Loading…
Reference in New Issue
Block a user