{
  "name": "math.random",
  "description": "Returns a random number from optional child-node bounds",
  "signature": {
    "children": {
      "min": {
        "type": "int",
        "kind": "validator-min-integer",
        "description": "Inclusive lower bound; requires [max] and must appear before it",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "role": "Option",
        "projection": "Value"
      },
      "max": {
        "type": "int",
        "kind": "validator-max-integer",
        "description": "Exclusive upper bound; when supplied without [min], the lower bound is 0",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "role": "Option",
        "projection": "Value"
      }
    },
    "constraints": [
      {
        "target": "min",
        "description": "[min] requires [max]",
        "values": [
          "max"
        ],
        "kind": "Requires"
      }
    ],
    "output": {
      "mode": "Value",
      "kind": "number",
      "description": "Resolves to a random double, or a random integer when bounds are supplied"
    }
  }
}
