> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reqi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Random integer

> Uniform random integer in an inclusive min/max range.

Uniform random integer in an inclusive min/max range.


## OpenAPI

````yaml https://api.reqi.dev/openapi/utilities.json GET /v1/util/random
openapi: 3.1.0
info:
  title: Countries API — Utilities
  version: 1.0.0
  description: >-
    Stateless helpers unrelated to country records Subset of the full API
    contract at /openapi.json (5 paths).
servers:
  - url: https://api.reqi.dev
    description: API host
  - url: https://cdn.reqi.dev
    description: Flag CDN
security: []
tags:
  - name: Utilities
    description: Stateless helpers unrelated to country records
paths:
  /v1/util/random:
    get:
      tags:
        - Utilities
      summary: Random integer
      description: Uniform random integer in an inclusive min/max range.
      operationId: utilRandom
      parameters:
        - name: min
          in: query
          description: Inclusive minimum. Default 0.
          schema:
            type: integer
            default: 0
        - name: max
          in: query
          description: Inclusive maximum. Default 100.
          schema:
            type: integer
            default: 100
      responses:
        '200':
          description: Random value.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UtilRandom'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    UtilRandom:
      type: object
      properties:
        kind:
          type: string
        min:
          type: integer
        max:
          type: integer
        value:
          type: integer
        integer:
          type: boolean
    Error:
      type: object
      required:
        - message
        - status
      properties:
        message:
          type: string
        status:
          type: integer
  responses:
    BadRequest:
      description: Invalid query parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.