## Why XCOM's Random Results Sometimes Aren't

13 Oct 2012

The randomization in XCOM: Enemy Unknown is what TIME's Matt Peckham has chosen to dedicate an article about, with the additional intention of trying to sway a few more people into playing with Ironman mode activated. Here's a snip:
But letâ€™s say youâ€™re playing through a sequence of events in a scenario that leads to one of your soldiers being flanked by a sectoid (XCOMâ€™s â€œgray-skinned, black-eyedâ€ aliens) who fires and scores a one-shot kill. If you reload, then perform each move and action in XCOM exactly as you did before from that point in the scenario, youâ€™ll get exactly the same results.

I donâ€™t mean sometimes or mostly, but every time and precisely the same, from misses to hits, damage meted out or incurred, where your opponents go and what they do, and so forth. Execute the same moves a dozen times in a row and youâ€™ll have a dozen identical replays, right up to and including the sectoid shot that puts the soldier you were reloading to save down. As The Doctor might say, some events are fixed points in time: In XCOM, those fixed points become tantamount to saved games when played as re-enactions.

Thereâ€™s a reason for this. Technically speaking, itâ€™s because XCOM randomizes its numbers from a seed thatâ€™s saved at the outset of a scenario. That seed determines what happens thereafter, and once youâ€™ve memorized a certain play sequence, if you choose to repeat it, itâ€™s doing so in essentially non-random terms.

Bear with me here. Random numbers on computers arenâ€™t truly random, theyâ€™re actually pseudo-random, because computers are deterministic. The best they can do is generate sequences of numbers that appear random (well, unless youâ€™re hooking them up to geiger counters connected to radioactive material, but thatâ€™s another story). In most instances, pseudo-random is random enough. The purpose of randomization in games is to create unpredictability (the more predictable a game, the less interesting and game-like it tends to be). You might describe a game like XCOM as a predictability refinement simulation, where your choices â€” add this skill, equip that piece of armor, research a given alien technology â€” chip away at the gameâ€™s arbitrariness.
Â
Â