Community Detection in Random Networks