📅  最后修改于: 2022-03-11 15:03:23.828000             🧑  作者: Mango
function computerplay() {
choices = ["rock", "paper", "scissors"]
var ai = choices[Math.floor(Math.random() * choices.length)]
return ai;
}