I am very new to Python and am working on a random name generator.
I take First Name and Last Name strings and randomly combine them.
My problem is that I am getting the same name a lot. However, I want the program to give me every combination of names. Here is the basic program:
import random
FirstName = "jay", "jim", "roy", "axel", "billy", "charlie", "jax", "gina", "paul",
"ringo", "ally", "nicky", "cam", "ari", "trudie", "cal", "carl", "lady", "lauren",
"ichabod", "arthur", "ashley", "drake", "kim", "julio", "lorraine", "floyd", "janet",
"lydia", "charles", "pedro", "bradley"
LastName = "barker", "style", "spirits", "murphy", "blacker", "bleacher", "rogers",
"warren", "keller"
First = random.choice(FirstName)
Last = random.choice(LastName)
print (First + " " + Last)
I think I just realized a second problem I have. Some first names can be last names, and vice versa. For example, Bradley can be a first name and a last name. Is it possible to put Bradley in FirstName and LastName and then put some logic in so that I never get the same exact name, like Bradley Bradley?