How in CDMA mobiles receiver gets unique code to decode its respective signal?
The code is statistically random but it is not secret.  In fact, it's chosen to not conflict with another code on the same frequency.  Both ends know the code--it's part of the notion of "channel number".  This code sequence stuff is common and you will find the same thing in GPS, and even modems.  Sometimes it is called "scrambling".