It could be done by just chucking a bunch of names into an array and then just rolling dice to pick one of them.But why should a dev bother doing that when the player can just go on a website that generates random names and get the same results.