example: https://www.fakenamegenerator.com/gen-male-us-hu.php
It pulls from a dataset containing the names, based upon the criteria entered on the site. When someone clicks ‘Generate’ it most likely triggers a function and displays the result.
Inspecting this php script might explain it a bit better
view-source:https://www.fakenamegenerator.com/gen-random-us-us.php
There are many methods of text generation. Markov chains are an old trick and a good starting place, which you can use to generate either longer texts or just simple names
1 Like
By the way, that’s the most popular name generator. However, it has quite a number of things to be improved, I suppose
