I am trying to assign 4 different users records as the come in. I found this code
const collaborators = [
{name: "Person 1"},
{name: "Person 2"},
{name: "Person 3"},
{name: "Person 4"}
]
const chosenOne = collaborators[Math.floor(Math.random() * collaborators.length)];
output.set("collaborators", chosenOne.name)
My problem is that it doesn't exhaust the 4 names before repeating. What do I need to do to this code for it to go through all 4 options and then repeat?
