Apidog Docs
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
HomeLearning Center
Support CenterAPI ReferencesDownloadChangelog
HomeLearning Center
Support CenterAPI ReferencesDownloadChangelog
Discord Community
Slack Community
X / Twitter
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
  1. Learning Center
  • Back to home
  • 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
HomeLearning Center
Support CenterAPI ReferencesDownloadChangelog
HomeLearning Center
Support CenterAPI ReferencesDownloadChangelog
Discord Community
Slack Community
X / Twitter
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
πŸ‡ΊπŸ‡Έ English
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡―πŸ‡΅ ζ—₯本θͺž
  1. Learning Center

Number

Module to generate numbers of any kind.

Module 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.hex}}, {{$number.octal}} and {{$number.binary}}.
Related modules
For numeric strings of a given length, use String.
For credit card numbers, use Finance.

bigInt#

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

binary#

Returns a binary number. The bounds are inclusive.
Parameters
NameTypeDefaultDescription
maxstring | number | bigint1Upper bound for generated number.
minstring | number | bigint0Lower 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.
minnumber0.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
minnumber0Lower 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
minnumber0Lower 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
minnumber0Lower bound for generated number
Returns: string
Examples
Modified atΒ 2026-01-14 09:10:00
Previous
Music
Next
Person
Built with