int rollDice( QString dicePattern )
int rollDice( const QString& dicePattern )
int rollDice( QString dicePattern ) // roll dices d&d style{	// dicePattern looks like "xdy+z"	// which equals RandomNum(x,y)+z	int doffset = dicePattern.find("d"), poffset = dicePattern.find("+");	int x = dicePattern.left( doffset ).toInt();	int z = dicePattern.right( dicePattern.length()-1 - poffset ).toInt();	int y = dicePattern.mid( doffset+1, poffset-doffset-1 ).toInt();	return RandomNum(x,x*y)+z;}