This variant works with an array literal, so there is no need to assign it to a variable first.
Let's say you have the literal value:
["a", "b", "c", "d", "e"]
Then, to get a random item out of that:
["a", "b", "c", "d", "e"].map(n => [Math.random(), n]).sort()[0][1];