tulamide, ah I found random doesn't spit out nice integers for me like I try to force it into, although the clamp wouldn't solve that either.
And surprised to see random(3) is between 0 and 2, thanks for sharing <img src="smileys/smiley1.gif" border="0" align="middle" />