Skip to main content

Scalar functions

digitString

Commentary

added in 0.1.13

Generates character strings composed of only digits. Specify the length with n.


Examples

Generating digit strings

{
"_gen": "digitString",
"n": 5
}
[
"64952",
"25455",
"71187",
"94716",
"24486"
]

Specification

JSON schema

{
"type": "object",
"properties": {
"n": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "object",
"properties": {
"_gen": {
"type": "string"
}
},
"required": [
"_gen"
]
}
]
}
},
"required": [
"n"
]
}