How AI Chooses Words: Probability, Softmax, and Temperature

When you ask an AI model like OpenAI ChatGPT or Google Gemini a question, it feels like the model is “thinking.”