One of the ways to gain true friends is to give of yourself. Sometimes just being there and laughing at their jokes brings a smile to their face.
If you're looking for what you can get out of friendship I think you're looking at it the wrong way. You don't feel like you have a friend until you start giving them a hand. Being the one who helps them move their stuff. Picks up their book because you happen to be going that way anyway. Those sort of favours. Then not measure when they come back to you. You might have to do this often enough for a few people till you find the ones who balance out the score for you and those you will call your friends.
Being Happy For No Reason is being happy in what you do. That means not putting yourself out just to win friends but doing what makes you happy. Looking or opportunities where you can truthfully say, "happy to help" with a smile. That's scores you friends.