RandomGraph
RandomGraph[{n,m}] gives a pseudorandom graph with n vertices and m edges.
RandomGraph[{n,m},k] gives a list of k pseudorandom graphs.
RandomGraph[gdist,…] samples from the random graph distribution gdist.
Examples
Create a random graph with 10 vertices and 15 edges:
RandomGraph[{10, 15}]Please visit the official Wolfram Language Reference for more details.