DCGAN is initialized with random weights, so a random code plugged into your network would crank out a totally random image. However, while you may think, the network has a lot of parameters that we are able to tweak, as well as the aim is to find a location of those parameters which makes samples generated from random codes appear like the educati