Select 3 resources out of 5 options

About this model

This diagram represents a system designed to simulate the process of randomly selecting three pools out of five possible options, applying combinatorial logic to explore all possible scenarios. Specifically, these scenarios include all combinations for selecting three pools from a set of five, totaling ten different combinations (calculated as 5! / 3! * (5-3)!, which corresponds to the formula for combinations). This is achieved through a series of gates that stand for all possible combinations, combined with trigger actions to randomly enable one of these ten combinations during a simulation run.

At the start of the simulation, a predefined action sends a single resource to enable the selection process, ensuring that only one set of three pools is chosen for that particular run. The inclusion of condition checks and activation triggers on pools and gates allows for changing which pools are selected with each new simulation. This setup ensures variability and the testing of different outcomes within a controlled, yet randomized environment. The system's design reflects a foundational structure for simulations requiring a dynamic selection from a set of options based on predefined probabilities, making it applicable in scenarios like game mechanics testing, decision-making processes, or any situation where random selection from a set is required.

“Select 3 resources out of 5 options” is a diagram in the Machinations Community by Catalin Ichim.

You can open the original diagram in the Machinations app, press Play to watch how resources move through it, and change its values to see how the system responds. Machinations is a visual tool for designing, simulating and balancing game economies and other systems, where resources flow through sources, pools, drains, converters and gates. In a diagram, a source creates resources, a pool stores them, a drain removes them, a converter changes one resource into another and a gate decides where they go next.