This short text on computer simulations in humanities and the social sciences is devoted to agent-based simulations. The ingredients of an agent-based simulation are essentially two: agents and interactions. Agents with their own properties interact among them and interactions may be indirect or direct. As a consequence of an analogy with physical systems, the relevance of statistical equilibrium in economics is also discussed.