Prescription costs on a high deductible plan with no drug plan?

I had a prescription for Vitamin D for which they would only give me the pills a month at a time - every time I went it cost something different - no change in our insurance. No one at CVS could explain it either. I think it’s like the cost of an airline seat - it’s really arbitrary.