Simplifies some functions in random_graphs.py
Simplifies some functions in random_graphs.py

OrkoHunter/networkx,NvanAdrichem/networkx,chrisnatali/networkx,sharifulgeo/networkx,cmtm/networkx,ionanrozenfeld/networkx,JamesClough/networkx,tmilicic/networkx,aureooms/networkx,ltiao/networkx,chrisnatali/networkx,ionanrozenfeld/networkx,harlowja/networkx,Sixshaman/networkx,ionanrozenfeld/networkx,beni55/networkx,blublud/networkx,aureooms/networkx,SanketDG/networkx,blublud/networkx,andnovar/networkx,dmoliveira/networkx,sharifulgeo/networkx,sharifulgeo/networkx,dmoliveira/networkx,ghdk/networkx,chrisnatali/networkx,goulu/networkx,harlowja/networkx,michaelpacer/networkx,ghdk/networkx,blublud/networkx,yashu-seth/networkx,ghdk/networkx,dmoliveira/networkx,aureooms/networkx,jcurbelo/networkx,wasade/networkx,jfinkels/networkx,harlowja/networkx