The interpretation of mammograms requires many years of training and experience. Currently, training in mammography, like the rest of diagnostic radiology, is through institutional libraries, books, and experience accumulated over time. We explore whether artificial Intelligence (AI)-generated images can help in simulation education and result in measurable improvement in performance of residents in training. We developed a generative adversarial network (GAN) that was capable of generating mammography images with varying characteristics, such as size and density, and created a tool with which a user could control these characteristics. The tool allowed the user (a radiology resident) to realistically insert cancers within different regions of the mammogram. We then provided this tool to residents in training. Residents were randomized into a practice group and a non-practice group, and the difference in performance before and after practice with such a tool (in comparison to no intervention in the non-practice group) was assessed. Fifty residents participated in the study, 27 underwent simulation training, and 23 did not. There was a significant improvement in the sensitivity (7.43 percent, significant at p-value = 0.03), negative predictive value (5.05 percent, significant at p-value = 0.008) and accuracy (6.49 percent, significant at p-value = 0.01) among residents in the detection of cancer on mammograms after simulation training. Our study shows the value of simulation training in diagnostic radiology and explores the potential of generative AI to enable such simulation training. Using generative artificial intelligence, simulation training modules can be developed that can help residents in training by providing them with a visual impression of a variety of different cases. Generative networks can produce diagnostic imaging with specific characteristics, potentially useful for training residents. Training with generating images improved residents' mammographic diagnostic abilities. Development of a game-like interface that exploits these networks can result in improvement in performance over a short training period.