Random network generator