I have 3 array variables with 10 element in each:
const groupA = ["Samuel", "Segun", "Daniel", "Toby", "John", "Malik", "Deji", "Wale", "Femi", "Jamal"];
const groupB = ["Niyola", "Diana", "Daniella", "Jane", "Cynthia", "Pamela", "Cassandra", "Feyi", "Esther", "Oyinda"];
const places = ["The Place", "Royale", "Eko hotel", "The Renaissance", "Arts Gallery", "Game center", "Sheraton", "Airport Hotel", "Harvey Garden", "Beverly Park"];
I used the random function to generate an element from each variables to match and print as:
Group A = Daniel and Group B = Cassandra will be going on a dinner date at Place = Airport Hotel.
How do I make the program not repeat groupA element until the array is exhausted?