Chance
Generates a random number between 0.0 and 1.0 and checks if it's less than a specified value.
Type ID: origins:chance
Fields
Field | Type | Default | Description |
---|---|---|---|
chance |
Float | The value to compare the randomly generated number to. |
Examples
"condition": {
"type": "origins:chance",
"chance": 0.5
}
This example will evaluate to true 50% of the time.