A random close packing based algorithm for the generation of continuous random networks