I'm still pretty new to coding and javascript, but I wrote the code below as a three way randomizer. Everything seems to be working fine, except that no matter how many times I run the code the return is whatever is plugged in as "c". I was wondering if anyone can give me some quick advice on what to do to fix this. Thanks.
var random = function() {
var randomizer = function() {
Math.random() * 100
}
if (randomizer <= 33) {
var compDecision = "a"
}
else if (randomizer > 67) {
var compDecision = "b"
}
else if (33 < randomizer <= 67) {
var compDecision = "c"
}
document.write(compDecision)
}