Hello, I’m wondering if the following code will run correctly, or if it has any syntax errors. The purpose is to pick a random number (0-11) and
if it is 0, to pick a second random number (0-10) and display the second number,
if it is 11, to pick a second random number (1-11) and display the second number,
and if it is any number between 1 and 10, to display that number. (this way 0 and 11 both have extremely low chances of being shown)
r=()=>Math.floor(Math.random()*12); a=r(); u=()=>Math.floor(Math.random()*11+1); d= ()=>Math.floor(Math.random()*11); `$(query), on a scale of 1 to 10, you're a solid ${a==11? u():a==0?d():a}!`