Let L be subset of {3,4,…} and let Xn,M(L) be the number of cycles belonging to unicyclic components whose length is in L in the random graph G(n,M). We find the limiting distribution of Xn,M(L) in the subcritical regime M=cn with c<1/2 and the critical regime M=2n(1+μn−1/3) with μ=O(1). Depending on the regime and a condition involving the series ∑l∈L2lzl, we obtain in the limit either a Poisson or a normal distribution as n→∞.