Code:
action randomskin()
{
  my.skin = 1 + random(ent_skins(me));
}



Always learn from history, to be sure you make the same mistakes again...