Event-driven controller is designed in this paper on the context of networked communication links. For reducing the network burden, an event generator is employed to reduce the transmitted data in network. Meanwhile, data losses on both sides of the controller are taken into account and captured by random distributions. Considering the time-varying network environment, the probability of the random data loss considered in this paper is also time-varying which is more conformed to actual situation. The controller is supposed to be event-driven, so that the computational demand of the control system and the implementation are simplified. Then a novel random process approach is developed to capture the data model and construct the closed-loop systems simultaneously. Finally, the effectiveness of the presented model is verified via simulation examples.