Int ( Random * NumbSides ) + 1
Would simulate rolling a single die with the number of sides specified in NumbSides.
As always, worked like a charm! :)
I never got into D&D, although I did give it a go.
Avalon Hill, SPI hex based games were my poison of the day!
Yeah, I wargamed a few games. Ogre was one of my favorites and I've still got one I created on my own sitting in the cupboard, I keep threatening to get it out and drag my boys through a game or two...