It can vary. It can even be arbitrarily large. For example, consider the ring $k[x,y]$ and the ideal $(x,y)^n$. This ideal is generated by all monomials of the form $x^iy^j$ with $i+j=n$. There are $n+1$ of these.
ADDENDUM in response to your edit:
Ah, you are talking about a fixed specific ideal.
Now there are two things you could mean:
(1) Given an ideal $I$ in a noetherian ring $R$, do all generating sets for $I$ that are of minimal cardinality have the same cardinality?
(2) Given an ideal $I$ in a noetherian ring $R$, do all generating sets of $I$ that are minimal as generating sets (i.e. minimal in the sense that if an element is dropped from one of them it will no longer generate $I$) have the same cardinality?
Based on your comments (ed: now deleted), (1) is the one I think you mean. This is true, and doesn't depend on the ring being noetherian; and is true for sort of a vacuous reason. If an ideal has a generating set of cardinality $n$ and no generating set of cardinality lower than $n$, then $n$ is the minimal cardinality of a generating set (by definition!). Thus any generating set of minimal cardinality has this same cardinality $n$.
This may feel like I haven't said anything. The underlying mathematical substance is the fact that the set of natural numbers is well-ordered; any set of natural numbers has a least element. This is why it even makes sense to talk about a minimal-cardinality generating set. But once it makes sense to talk about this, then all generating sets realizing this minimal cardinality must have the same cardinality, because it is this minimal one.
(2) is actually false, even in $\mathbb{Z}$. For example, the ideal $(2)$ equals the ideal $(6,8)$. But the generating set $\{6,8\}$ for this ideal is minimal in the sense that if either element is dropped, the ideal becomes smaller.