A vending machine makes a simple promise.
Press B4 and you get the same snack every single time. Press A2 and you get a different snack — but again, the same one every time.
What it will never do is hand you two different snacks for the same button.
That boring reliability is the whole idea behind a function, which is the object every model in machine learning is built from.

One button in, one snack out, every time.