In my Space Bum series, I have the cast of characters Besh, Sam Barker, Raul Ruiz, and Crispin Beasley. The incidental characters are King David Loughty, Queen Elizabeth Loughty, Prince Albert Loughty, and Heaven Langley.
My ideas for Besh came way back in the 90s. Besh is a consolidation of letters from his name, Benjamin Edward Shuller. He meets Captain Sam Barker, and the inspiration for his name is in the passage; Sam confronts Besh, a stowaway, and uses a loud voice. Sam used to be a pirate and had another name, Maxfield Dagget, inspired by the name Maxfield Parrish, one of my favorite artists. I gave the name Raul to one of my characters because I remembered it from a Terrence Hill movie. Crispin is a rare name but it was not as much a part of the character as his last name.
For the King, Queen, and Prince, I used real-world names. There was actually a King David and a Queen Elizabeth. My sense of humor could not resist throwing in a Prince Albert, which I have smoked on occasion. The name Heaven just popped into my head when I introduced the character, and I chose the last name Langley to make her sound official, as she was a Constable in the King's service.
In my Star Seeders series, the thought was to base characters on religious characters. Therefore, my MC, Jeez, was based on Jesus. LUC was based on Lucifer. The MC's father, named Godeli, was a construct of a title and a name: God and Eli. Bha Huda was based on Budda, and Crish was based on Krishna. The two soldiers closest to the MC were military Archangels. I named them after angels I looked up on the internet. They are Barachiel and Khamuel.
In my fantasy novel, The Faerie Dusters, I got the MC's name from the back of a phone book.
https://tapas.io/series/Escape-Through-Esthos/info
https://tapas.io/series/Mundus-Vae-Men-of-Mud-and-Stone/info