Junnyfirst34's picture
Create generate.code
1737869 verified
raw
history blame contribute delete
237 Bytes
import json
import random
data = {
"sensor_ms": [random.randint(10,15) for _ in range(10)],
"control_ms": [random.randint(3,6) for _ in range(10)]
}
with open("latency_log_001.json", "w") as f:
json.dump(data, f, indent=2)