data(){ return { colors: [ "red", "blue", "green", "indigo", "purple", "teal", "orange", "brown", "deep-orange", "blue-grey", "cyan" ], currentColor: "" } }, methods: { randomColors() { this.currentColor = this.colors[Math.floor(Math.random() * this.colors.length)]; }, }