If you do not have practice using social spontaneity to good effect it is ideal to try it in situations where the other party may both physically and socially escape, just as a general rule. On public transportation is not a physically escapable place to be.
Yes, what I used to do was yell greetings at random people on campus. Sometimes questionable propositions. Plenty of room for escape, especially when I'm sitting and they're walking. I met several good friends that way.
ETA: "questionable propositions" here being things like "P=NP" or "multiple realizability is true"
This is a supplement to the luminosity sequence. In this comment, I mentioned that I have raised my happiness set point (among other things), and this declaration was met with some interest. Some of the details are lost to memory, but below, I reconstruct for your analysis what I can of the process. It contains lots of gooey self-disclosure; skip if that's not your thing.
In summary: I decided that I had to and wanted to become happier; I re-labeled my moods and approached their management accordingly; and I consistently treated my mood maintenance and its support behaviors (including discovering new techniques) as immensely important. The steps in more detail:
1. I came to understand the necessity of becoming happier. Being unhappy was not just unpleasant. It was dangerous: I had a history of suicidal ideation. This hadn't resulted in actual attempts at killing myself, largely because I attached hopes for improvement to concrete external milestones (various academic progressions) and therefore imagined myself a magical healing when I got the next diploma (the next one, the next one.) Once I noticed I was doing that, it was unsustainable. If I wanted to live, I had to find a safe emotional place on which to stand. It had to be my top priority. This required several sub-projects:
2. I re-labeled my moods, so that identifying them in the moment prompted the right actions. When a given point on the unhappy-happy spectrum - let's call it "2" on a scale of 1 to 10 - was labeled "normal" or "set point", then when I was feeling "2", I didn't assume that meant anything; that was the default state. That left me feeling "2" a lot of the time, and when things went wrong, I dipped lower, and I waited for things outside of myself to go right before I went higher. The problem was that "2" was not a good place to be spending most of my time.
3. I treated my own mood as manageable. Thinking of it as a thing that attacked me with no rhyme or reason - treating a bout of depression like a cold - didn't just cost me the opportunity to fight it, but also made the entire situation seem more out-of-control and hopeless. I was wary of learned helplessness; I decided that it would be best to interpret my historically static set point as an indication that I hadn't hit on the right techniques yet, not as an indication that it was inviolable and everlasting. Additionally, the fact that I didn't know how to fix it yet meant that if it was going to be my top priority, I had to treat the value of information as very high; it was worth experimenting, and I didn't have to wait for surety before I gave something a shot.