File size: 237 Bytes
1737869
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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)