Generate random graph in PR code.