A random mapping of a countable set N into itself is studied. An explicit formula is found for the probability that a subset of N will not contain cycles of the mapping. This formula is applied then for a detailed asymptotic analysis of two special mappings.