Skip to main content

Scalar functions

number

Commentary

added in 0.0.5

Generates decimal numbers, presumably from a generator that produces integers.


Examples

Generating numbers

{
"_gen": "number",
"n": {
"_gen": "uniformDistribution",
"bounds": [
1,
5
]
}
}
[
3.5020046928541357,
1.7959479262608946,
3.831749055293069,
3.5618353189662546,
2.2954045615815684
]

Specification

JSON schema

{
"type": "object",
"properties": {
"n": {
"type": "object"
}
},
"required": [
"n"
]
}