A thought is nothing but an impulse of energy and intelligence. If this energy that is getting created or generated from you is negative, then it will attract more negativity and negative thoughts. If you are in a positive place, then you will get more positive thoughts.
Never underestimate the power of your thought, the power of your determination.