JSFiddle - React, Tailwind, and code Playground

JavaScript

var things = ['Rock', 'Paper', 'Scissor'];
var thing = things[Math.floor(Math.random()*things.length)];
alert('The computer chose: ' + thing);