I don't know if "The Secret" is legitimate or not. It seems most people do indeed get what they "need" but the opposite of what they "want". It's certainly true in my life.
Matter of fact I have to consciously guard against wanting anything because I know I'll get the opposite.