Event simulation using machine learning at the ATLAS detector