Software Engineering ยท Design
Same input, same output โ every single time, with no variation between runs.
Example: A sorting function that returns the exact same order every time you give it the exact same list.
In practice: Determinism is what makes a function safe to test with a fixed assertion and safe to memoize โ but it says nothing about side effects, so a deterministic function can still be unsafe to call twice if it also writes to a shared counter.