Random Generator

Vand ID: vand-2aa02117-3c57-419f-b857-5f320612c616

Learn how to easily use the Random Generator tool with the OpenAI API.

Generate truly random numbers from atmospheric noise, supported by random.org (not official).

OpenAI function calls:

{
  "name": "getRandomIntegers",
  "description": "Get random integers",
  "parameters": {
    "type": "object",
    "properties": {
      "max": {
        "type": "integer",
        "description": "The maximum value allowed for each integer (inclusive)."
      },
      "min": {
        "type": "integer",
        "description": "The minimum value allowed for each integer (inclusive)."
      },
      "n": {
        "type": "integer",
        "description": "The number of integers requested, a.k.a. How many random integers you need."
      },
      "replacement": {
        "type": "boolean",
        "description": "Specifies whether the random numbers should be picked with replacement."
      }
    },
    "required": []
  }
}

Auth Type

none

Servers

https://randomgpt.astrian.moe

OpenAPI:

{
  "openapi": "3.0.1",
  "info": {
    "title": "Random Generator",
    "description": "Generate truly random numbers from atmospheric noise, supported by random.org (not official).",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://randomgpt.astrian.moe"
    }
  ],
  "paths": {
    "/integers": {
      "get": {
        "operationId": "getRandomIntegers",
        "summary": "Get random integers",
        "description": "Get random integers",
        "parameters": [
          {
            "name": "max",
            "in": "query",
            "description": "The maximum value allowed for each integer (inclusive).",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 99
            }
          },
          {
            "name": "min",
            "in": "query",
            "description": "The minimum value allowed for each integer (inclusive).",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "n",
            "in": "query",
            "description": "The number of integers requested, a.k.a. How many random integers you need.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "replacement",
            "in": "query",
            "description": "Specifies whether the random numbers should be picked with replacement.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "randomIntRes": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "integer",
              "description": "The random integers"
            }
          }
        }
      }
    }
  }
}