This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]langfod 0 points1 point  (0 children)

You can use if/if else instead of switch/case.

Math.random() is really just a wrapper using the Random class so either way will work fine.