Apicat Docs
  1. Dynamic values Modules
Apicat Docs
  • What is Apicat?
  • Send requests
    • Create requests
      • Request basics
      • Parameters and body
      • Request headers
      • Request settings
      • Dynamic values
      • HTTP/2
      • SOAP/WebService
    • Authentication and authorization
      • Overview
      • CA and client certificates
      • Authorization types supported by Apidog
      • Digest Auth
      • OAuth 1.0
      • OAuth 2.0
      • Hawk Authentication
      • Kerberos
      • NTLM
      • Akamai EdgeGrid
    • Response and cookies
      • Overview
      • API response in Apidog
      • Create and send cookies
      • Debug requests
    • Dynamic values Modules
      • Airline
      • Animal
      • Color
      • Commerce
      • Company
      • Database
      • Datatype
      • Date
      • Finance
      • Food
      • Git
      • Hacker
      • Helpers
      • Image
      • Internet
      • Location
      • Lorem
      • Music
      • Number
      • Person
      • Phone
      • Science
      • String
      • System
      • Vehicle
      • Word
  • Environments & variables
    • Overview
    • Using variables
    • Environments & services
  • Pre/Post processors
    • Overview
    • Assertion
    • Extract variable
    • Wait
    • Database operations
      • Overview
      • MySQL
      • MongoDB
      • Redis
      • Oracle Client
    • Using scripts
      • Overview
      • Pre processor scripts
      • Post processor scripts
      • Public scripts
      • Postman scripts reference
      • Calling other programming languages
      • Using JS libraries
      • Visualizing responses
      • Script examples
        • Assertion scripts
        • Using variables in scripts
        • Using scripts to modify request messages
        • Other examples
  • Best practices
    • How to handle API signatures
    • How to access OAuth 2.0 protected APIs
    • Apidog collaboration workflow
    • Managing authentication state in Apidog
  • Account & preferences
    • Account settings
    • Generate OpenAPI access token
    • Language settings
    • Hot keys
    • Network proxy configuration
    • Data backup
    • Updating Apidog
    • Deleting account
    • Experimental Features
  • References
    • API-Design First Approach
    • Apidog OpenAPI/Swagger Specificaiton Extensions
    • JSONPath
    • XPath
    • Regular Expressions
    • JSON Schema
    • CSV File Format
    • Install Java Environment
    • Runner deployment environment
    • Apidog flavored Markdown
  1. Dynamic values Modules

Number

Module to generate numbers of any kind.
Overview
For simple integers, use {{$number.int}}. For decimal/floating-point numbers, use {{$number.float}}.
For numbers not in base-10, you can use {{number.octal}}and{{$number.binary}}`.
Related modules
For numeric strings of a given length, use {{$string.numeric}}.
For credit card numbers, use {{$finance.creditCardNumber}}.

bigInt#

Returns a BigInt number. The bounds are inclusive.
Parameters
NameTypeDefaultDescription
maxstring | number | bigint |min + 999999999999999nUpper bound for generated bigint.
minstring | number | bigint |0nLower bound for generated bigint.
Returns: bigint
Examples

binary#

Returns a binary number. The bounds are inclusive.
Parameters
NameTypeDefaultDescription
maxstring | number | bigint |1Upper bound for generated number.
minstring | number | bigint |0Lower bound for generated number.
Returns: string
Examples

float#

Returns a single random floating-point number, by default between 0.0 and 1.0. To change the range, pass a min and max value. To limit the number of decimal places, pass a multipleOf or fractionDigits parameter.
Parameters
NameTypeDefaultDescription
fractionDigitsnumberThe maximum number of digits to appear after the decimal point, for example 2 will round to 2 decimal points. Only one of multipleOf or fractionDigits should be passed
maxnumber1.0Upper bound for generated number, exclusive, unless multipleOf or fractionDigits are passed.
maxnumber0.0Lower bound for generated number, inclusive.
multipleOfnumberThe generated number will be a multiple of this parameter. Only one of multipleOf or fractionDigits should be passed.
Returns: number
Examples

hex#

Returns a lowercase hexadecimal number. The bounds are inclusive.
Parameters
NameTypeDefaultDescription
maxnumber15Upper bound for generated number
maxnumber0Lower bound for generated number
Returns: string
Examples

int#

Returns a single random integer between zero and the given max value or the given range. The bounds are inclusive.
Parameters
NameTypeDefaultDescription
maxnumberNumber.MAX_SAFE_INTEGER Upper bound for generated number
maxnumber0Lower bound for generated number
multipleOfnumber1Generated number will be a multiple of the given integer.
Returns: number
Examples

octal#

Returns an octal number. The bounds are inclusive.
Parameters
NameTypeDefaultDescription
maxnumber7Upper bound for generated number
maxnumber0Lower bound for generated number
Returns: string
Examples

Modified at 2025-06-25 07:57:16
Previous
Music
Next
Person
Built with