The Origins of the Theory of Random Graphs