function isEvenNumber(num) {
if(Math.random() > 0.5) {
return true
}
return false
}
Took a while, but worked in the end. Be careful with the arbitrary code execution because I'm sure people can do more than generate random numbers!