The result is this little gem. It randomly chooses from a set of backgrounds, colors and head shapes, and put a letter on the generated avatar. This should be enough combinations so the change of users getting the same avatar generated is next to zero. It can produce SVGs or JPEGs, depending on your use case. More styles can be added somewhat easily.
I'm already using it for https://magicell.com/ and haven't seen any duplicates.
I am very open to feedback on this so please let me know what you think.
gus_massa•59m ago
Also, I get an error when I go to magicell.