As @kirativewd said your syntax is a little off. Hopefully that makes sense! Your question brings up another point though that is interesting. Which is, how does the switch statement perform it’s comparison?
It looks like it does a strict comparison. So it automatically performs === for you. This means the values passed into case not only have to equal the value of randomNumber but also have the same type. So for example let’s say, for whatever reason, your randomNumber was returning numbers as strings, but you are putting numbers in your case statement. This would be a problem at compilation time.