3 ms·
You're printing `b` three times in that Playground which makes it a look skewed. a: 25100 b: 25080 c: 25080 d: 25080 vs a: 24973 b: 2
by zimpenfish 8y ago
You're printing `b` three times in that Playground which makes it a look skewed.
a: 25100
b: 25080
c: 25080
d: 25080
vs
a: 24973
b: 25010
c: 25013
d: 25004
- cup-of-tea 8y agoSo it's deterministic. I got the same numbers.
- akavel 8y agoOn the Playground or on your PC? The Playground has an execution cache, so the same input code always gives the same (thus "deterministic") result.
- cup-of-tea 8y agoAh OK, it was on the playground. Is it deterministic when not cached?