Modeling and optimization of a class of networked evolutionary games with random entrance and time delays