The dwarf names I'm not sure about. I guess I could also just use a list of Old Norse names and it wouldn't feel very different at all, at least to somebody like me who doesn't speak any Norse.
https://dwarrowscholar.wordpress.com/general-documents/male-dwarf-outer-names/
https://dwarrowscholar.wordpress.com/general-documents/female-dwarf-outer-names/
The elf names finally are the weirdest one. My codes uses a prefix list, a word list, and a suffix list, with some combos, and then I try to follow the rules given here:
https://sindarinlessons.weebly.com/36---how-to-make-names-1.html
https://sindarinlessons.weebly.com/37---how-to-make-names-2.html
But in the end, I don't really know what I'm doing.