The Bothify field generates a string by replacing selected symbols with random characters.
fields:
- name: Bothify One
type: Bothify
args:
format: "^^ ## ??"
null_probability: 0.5
- name: Bothify Two
type: Bothify
args:
format: "^^ ## ??"
constraints:
- type: IfNull
name: Bothify One
- name: Bothify Three
type: Bothify
args:
format: |
{%- set one = refs['Bothify One']['raw'] -%}
{%- set two = refs['Bothify Two']['raw'] -%}
{%- if one -%}
Bothify One: {{ one }}
{%- elif two -%}
Bothify Two: {{ two }}
{%- else -%}
{%- endif -%}
| Bothify One | Bothify Two | Bothify Three |
| 53 09 UR | | Bothify One: 53 09 UR |
| 74 91 aR | | Bothify One: 74 91 aR |
| 35 79 jq | | Bothify One: 35 79 jq |
| 85 89 bv | Bothify Two: 85 89 bv |
| 92 55 tY | | Bothify One: 92 55 tY |
| 24 60 xq | Bothify Two: 24 60 xq |
| Name | Type | Description | Default |
| format | string | The format of the string to generate. | |
The format string is a string that contains symbols that will be replaced with random characters. The following symbols are supported:
| Symbol | Description |
| ^ | A random digit [1-9] |
| # | A random digit [0-9] |
| ? | A random letter [a-Z] |
| 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 |
| IfNull | The value must only be non-null if another field is null. |