Erin and the TWiN team explain how dopamine neurons encode reward probability and uncertainty, and their roles in attention-based learning and risk-taking such as gambling and addiction.