function chooseLunchBuyer(name) {
var position = name.length;
var randomPerson = Math.floor(Math.random() * position);
console.log(name[randomPerson] + " is the lucky lunch buyer today.");
}
chooseLunchBuyer("Jack", "Ben", "Jenny", "Michael", "Chloe");
After running this piece of code, it's interesting to see that instead of picking a full name, it randomly selects a single letter from the first name (in this case: Jack).