DCGAN is initialized with random weights, so a random code plugged into your network would produce a totally random image. Having said that, as you might imagine, the network has many parameters that we can tweak, as well as the purpose is to locate a location of those parameters https://ambiqcareers76431.blogocial.com/the-smart-trick-of-ambiq-apollo-sdk-that-no-one-is-discussing-69804183