The IntegerInRange field generates a random integer between a minimum and maximum value.
fields:
- name: Zero
type: IntegerInRange
args:
min: -20
max: 20
null_probability: 0
- name: One
type: IntegerInRange
null_probability: 0
args:
min: 0
max: 500
constraints:
- type: GreaterThan
name: Zero
| Name | Type | Description | Default |
| min | int | The minimum value | 0 |
| max | int | The maximum value | i64::MAX |
| Name | Type | Description | Default Value |
| null_probability | float | The probability that the field will be null. | 0.0 |
| constraints | list | A list of constraints to apply to the field. | [] |
| Name | Description |
| GreaterThan | The value must be greater than the value of another field. |
| IfNull | The value must only be non-null if another field is null. |