Generating Random Graphs With Tunable Clustering Coefficient