You are calling the random function twice instead of using the same cached value.
console.log(computerPlay());
let computerSelect = computerPlay(); The results should match if you only invoke the function once and store the value.
const computerSelect = computerPlay();
console.log(computerSelect); * Be the first to Make Comment