AI is supposed to do anything human or traditional computer can do, that is what we expect AI to be.
So 'generating random value' is also a task included in the scope that AI should be able to do
My GANs is like this:
Train an autoencoder (VAE), get the decoder part and use as Generator
After training, do the generation in these steps:
Call Generator to generate an image