If n tends to ∞ , the probability that a random number in the range [1,n] is a perfect square, tends to 0. So , if we allow the random number to be any positive integer, the probability is 0.