Numeric (integer)
Below is a list of available numeric (integer) mockers.
Age
A numerical representation of a person's age.
No
HTTP status code
A random HTTP status code from a list of commonly used codes.
No
Port number
A random network port number used for computer networking.
No
Random digit
A randomly generated digit character.
Yes
Random digit not null
A randomly generated non-zero digit character.
Yes
Custom integer
Generates integer values with each placeholder in Custom integer
field.
Parameters
Custom integer
: Each placeholder is replaced according to the following rules:Number signs (‘#’) are replaced with a random digit (0 to 9).
Percent signs (‘%’) are replaced with a random non-zero digit (1 to 9).
Dollar signs (‘$’) are replaced with a random digit above two (2 to 9).
Consistent mapping
: Custom integer supports consistent mapping.
Note: Additionally, any digits between 0 and 9 can be used in the pattern, apart from 0 as the first character. For example, '%#$#' will create a 4 digit number following the rules above.
Example
If you configure:
The results will be:
Uniform distribution
Generates a random integer between Minimum
and Maximum
.
Parameters
Minimum
: The minimum value of the integer (inclusive).Maximum
: The maximum value of the integer (exclusive).Consistent mapping
: Uniform distribution supports consistent mapping.
Example
If you configure:
The results will be:
Numeric series
Generates numeric (integer) series starting at Start
with Steps
.
Parameters
Start
(int): The minimum value of the numeric (integer) (inclusive).Step
(int): The step at a size numeric (integer) series will continue.Consistent mapping
: Numeric series supports consistent mapping.
Example
If you configure:
The results will be:
Last updated
Was this helpful?