Generate testing and training data.