DCGAN is initialized with random weights, so a random code plugged in the network would make a totally random image. However, when you may think, the network has a lot of parameters that we will tweak, and also the goal is to locate a environment of these parameters which makes samples produced from random codes look like the schooling facts.extra