As others mentioned, you could add to the plethora of HN browser extensions. Another idea would be to allow people to specify an avatar in their bio and load it in, though that would entail a lot of web requests I guess. Also, I just realized that it's not random... wow!