DCGAN is initialized with random weights, so a random code plugged into the network would generate a totally random picture. Nevertheless, as you might imagine, the network has millions of parameters that we can tweak, plus the goal is to locate a location of such parameters that makes samples produced from random codes look like the coaching info.