# realtime_engine.py

import random
from data_buffer import add_data

def run_realtime_engine(twins):
    for industry, twin in twins.items():
        demand = random.randint(70, 160)
        customers = random.randint(300, 900)

        twin.learn(demand, customers)
        add_data(industry, demand, customers)

        print(f"[AUTO] {industry.upper()} | Demand={demand}, Customers={customers}")
