We present a sparsely coupled two layer random neural net with an inhibitory element, and disclose some properties of transformation of Hamming distance between two patterns in this net. Simultaneously, we point out that the number of connections between two layers, and the function of the inhibitory element have a great effect on the transformation of Hamming distance between two patterns in the random neural net.