I've seen a few "pranksters" do similar things. This is very heartwarming. If only more people (including me), were more like that generous man. That man who "won" the lottery will remember this forever.
This is a very nice thing to do. I'll be doing the same (500$) to a homeless man in my town. This touched my heart, and will touch this man's heart for life.