generate
cl_forge.verify.generate
¶
Generates a list of unique Chilean RUT/RUN numbers with their verifier digits.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
The number of RUT/RUNs to generate. |
required |
min
|
int
|
The minimum value for the numeric part of the RUT/RUN. |
required |
max
|
int
|
The maximum value for the numeric part of the RUT/RUN. |
required |
seed
|
int | None
|
An optional seed for the random number generator to ensure
reproducibility. If |
None
|
Returns:
| Type | Description |
|---|---|
list[dict[str, int | str]]
|
A list of dictionaries, each containing 'correlative' and 'verifier' keys representing the generated RUT/RUN numbers. |
Raises:
| Type | Description |
|---|---|
InvalidInput
|
|
InvalidRange
|
If |
InsufficientRange
|
If the range between |