Your anecdote is you misremembering, then, as it's pretty established that it works the way Mist described (did in XCOM 1 as well I believe). But yea, changing amount of distance moved, altering what order you do things in, even reloading then firing, all have their own different possible results.