Random is a logic-type scripting element that can be used to create a random choice. It has two modes of operation. By default, when triggered it will trigger any linked script nodes with a 50 percent chance on each node separately. This is similar to the random ball grid bonus rooms found in the campaign.
Random has two fields:
- Nodes: The scripts that will be triggered by Random.
- Run one: Check-box. By checking this box, it will cause the Random script to always select only one output.
A good example for the usage of the "Run one" check-box is in the creation of random paths.
It is possible to select the same script node multiple times to increase the chance of it being selected when using the 'Run one' flag.