Math.floor(Math.random() * array.length)

NoSuchKey