Batch generation using Keras ImageDataGenerator

Could someone please tell me if ImageDataGenerator takes a random batch of original data while training, or does it take sequentially in every epoch like the first 100 samples in the first iteration, the second 100 samples in the second iteration, and so on?
I need to understand this as I’m training a convolutional autoencoder, and the input is passed as output too, in So both should correspond correctly.

© Copyright 2013-2020 Analytics Vidhya