2D javascript random spawning

Can anyone help me with a random item spawning?

An easy thing would be Random.Range and then Switch

thanks ill try!