# No external dependencies — uses only Python stdlib (random, time, logging)