General discrete triangular distribution