I am trying to get familiar with higher functions in our CSE100 class so I am attempting a sample problem of my own. I was wondering if maybe you could help me out. I am trying to create a random name generator (first and last). The first name and last names are in a variable list (firstname1, firstname2, etc) and I initialized every one equal to a different name (firstname1 = “John “

etc. I was wondering how I would get it to randomly select one of these strings. This is kinda what I want the program to do in the end:
RANDOM NAME GENERATOR
Press enter to generate a name… <user presses enter>
Random name = John Doe
Press enter to generate a name… <user presses enter>
Random name = Jane Doe
And so on and so forth in an infinite loop. I know I would probably need it to randomly generate a number between 1 and N, then select the corresponding string value. It would then need to do that twice to get the last name selected as well.
I have all the variables working, etc... I just dont know how to get the randomizer to work