ABSTRACT

Game programmers have a special relationship with the rand() function. We depend on it for variation in our games, using it to keep our gameplay fresh and our NPCs from becoming predictable. Whether it’s decision making, gameplay events, or animation selection, the last thing we want are repetitive characters or predictable gameplay; therefore randomness has become an essential tool.