There are no issues with the code that you have posted (assuming you have it complete which it isn't in the posted code).
I.E. This compiles just fine:
Code:
public make_hero(id)
{
switch (random_num(0, 1))
{
case 0:
{
// stuff 0
}
case 1:
{
// stuff 1
}
}
}
__________________