The code generates random traffic for an IoT simulator