I have to really disagree.
I don't have friends...
But it is not really a self-inflicted problem, I did tried to strike conversations with random strangers the most I could, be pleasant, whatnot.
But the places where I lived, it just didn't worked.
1. My neighbourhood has a race problem, most people there are mixed race but think themselves as black, I am mixed race too, but I look white. Trying to talk to neighbours didn't led to friendships, it led to people threatening to sic their pitbulls on me or showing to me their baseball bats and telling me to get my white ass out of their black neighbourhood.
2. For some time I lived in a Brazil's biggest city, where most people moved there to work, and are always in a hurry, there is always something to do, and they are always 'just passing', people frequently don't want to have friends, because they don't want to get attached to a place where they want to be only temporarily, and often people don't even strike random conversations, they are too busy, sometimes it wasn't even possible, like overcrowded and noisy public transport where you couldn't hear even yourself, much less someone else talking to you.
3. I went to some startup-related events, my company wasn't famous, and I didn't even had money to look fancy, for example I can't afford a nice watch. (an object I saw lots of successful startup owners wearing, despite today most people checking time on their phone...). Many people flat out refused to talk to me, they were dismissive in some ways, or moved away, or one guy I approached in a obviously expensive suit, that immediately said: "WHO THE FUCK ARE YOU?" and when I tried to tell him my name, he immediately made a 'eeeew gross' face, like he was royalty talking to a dirty peasant, and physically pushed me (not strongly) away from him.
So I don't think it is self-inflicted no...