Fake values
Generate random test values: dates, numbers, decimals, booleans, texts, codes from a pattern, UUIDs, colors, web and IP addresses. With a seed, the result is the same on every run. Typical uses: test data for scripts, demos and screens.
fake datefake datefake datetimefake datetimefake numberfake numberfake decimalfake decimalfake booleanfake booleanfake textfake textfake pickfake pickfake patternfake patternfake uuidfake uuidfake colorfake colorfake urlfake urlfake ipfake ip
fake date
Description
A date yyyy-MM-dd between two dates (included). Each call gives another value
A date yyyy-MM-dd between two dates (included). Each call gives another value
admin
fake date
mentdb
2007-04-25
fake date <params>
Description
A date yyyy-MM-dd between two dates (included), with parameters: from (1970-01-01 by default), to (2030-12-31 by default), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A date yyyy-MM-dd between two dates (included), with parameters: from (1970-01-01 by default), to (2030-12-31 by default), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake date "{\"from\": \"2026-01-01\", \"to\": \"2026-12-31\", \"seed\": 1}"
mentdb
2026-04-05
fake datetime
Description
A date and time yyyy-MM-dd HH:mm:ss between two moments (included, to the second, without time zone). Each call gives another value
A date and time yyyy-MM-dd HH:mm:ss between two moments (included, to the second, without time zone). Each call gives another value
admin
fake datetime
mentdb
2022-01-11 04:03:49
fake datetime <params>
Description
A date and time yyyy-MM-dd HH:mm:ss between two moments (included, to the second, without time zone), with parameters: from (1970-01-01 00:00:00 by default), to (2030-12-31 23:59:59 by default); a date alone means the start or the end of the day, seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A date and time yyyy-MM-dd HH:mm:ss between two moments (included, to the second, without time zone), with parameters: from (1970-01-01 00:00:00 by default), to (2030-12-31 23:59:59 by default); a date alone means the start or the end of the day, seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake datetime "{\"from\": \"2026-01-01\", \"to\": \"2026-06-30\", \"seed\": 1}"
mentdb
2026-03-24 07:23:59
fake number
Description
An integer between min and max (included). Each call gives another value
An integer between min and max (included). Each call gives another value
admin
fake number
mentdb
18
fake number <params>
Description
An integer between min and max (included), with parameters: min (0 by default), max (100 by default), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
An integer between min and max (included), with parameters: min (0 by default), max (100 by default), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake number "{\"min\": 1, \"max\": 6, \"seed\": 1}"
mentdb
2
fake decimal
Description
A decimal number between min and max (included) with a fixed number of decimals, written exactly. Each call gives another value
A decimal number between min and max (included) with a fixed number of decimals, written exactly. Each call gives another value
admin
fake decimal
mentdb
30.44
fake decimal <params>
Description
A decimal number between min and max (included) with a fixed number of decimals, written exactly, with parameters: min (0), max (100), decimals (2, up to 10), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A decimal number between min and max (included) with a fixed number of decimals, written exactly, with parameters: min (0), max (100), decimals (2, up to 10), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake decimal "{\"min\": 9.99, \"max\": 99.99, \"seed\": 1}"
mentdb
30.82
a rate with 4 decimals
admin
fake decimal "{\"min\": 0, \"max\": 1, \"decimals\": 4, \"seed\": 1}"
mentdb
0.0173
fake boolean
Description
A boolean: 1 or 0. Each call gives another value
A boolean: 1 or 0. Each call gives another value
admin
fake boolean
mentdb
0
fake boolean <params>
Description
A boolean: 1 or 0, with parameters: probability (of 1, 0.5 by default), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A boolean: 1 or 0, with parameters: probability (of 1, 0.5 by default), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake boolean "{\"probability\": 0.9, \"seed\": 1}"
mentdb
1
fake text
Description
A text: words, sentences or paragraphs (separated by an empty line), from lorem ipsum or from the simple words of the locale. Each call gives another value
A text: words, sentences or paragraphs (separated by an empty line), from lorem ipsum or from the simple words of the locale. Each call gives another value
admin
fake text
mentdb
Ex quis cupidatat aliqua eiusmod occaecat duis do.
fake text <params>
Description
A text: words, sentences or paragraphs (separated by an empty line), from lorem ipsum or from the simple words of the locale, with parameters: unit (words, sentences or paragraphs; sentences by default), count (5 words or 1 sentence or paragraph by default; at most 10000 words, 2000 sentences, 500 paragraphs), style (lorem, or locale), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A text: words, sentences or paragraphs (separated by an empty line), from lorem ipsum or from the simple words of the locale, with parameters: unit (words, sentences or paragraphs; sentences by default), count (5 words or 1 sentence or paragraph by default; at most 10000 words, 2000 sentences, 500 paragraphs), style (lorem, or locale), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake text "{\"count\": 2, \"seed\": 1}"
mentdb
Cupidatat sed mauris amet magna deserunt laborum. Quam velit nunc labore proident occaecat consectetur.
eight French words
admin
fake text "{\"unit\": \"words\", \"count\": 8, \"style\": \"locale\", \"seed\": 1}"
mentdb
la petit du sous équipe suivi la prix
fake pick <values>
Description
Pick one value of a JSON array, each with the same chance. A text comes back as it is, true and false as 1 and 0 (as fake boolean), null and numbers as JSON
Pick one value of a JSON array, each with the same chance. A text comes back as it is, true and false as 1 and 0 (as fake boolean), null and numbers as JSON
Parameters
values: The JSON array - String - required
values: The JSON array - String - required
admin
fake pick "[\"new\", \"paid\", \"shipped\"]"
mentdb
new
fake pick <values> <params>
Description
Pick one value with parameters: weights (one number per value: the chances are proportional, 0 is never picked), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Pick one value with parameters: weights (one number per value: the chances are proportional, 0 is never picked), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
values: The JSON array - String - required
params: The parameters as JSON - String - required
values: The JSON array - String - required
params: The parameters as JSON - String - required
admin
fake pick "[\"new\", \"paid\", \"shipped\"]" "{\"weights\": [1, 8, 1], \"seed\": 4}"
mentdb
paid
fake pattern <pattern>
Description
A code from a pattern: # a digit, ? a capital letter, * a capital letter or a digit, \ before a sign to keep it as it is. 200 characters at most
A code from a pattern: # a digit, ? a capital letter, * a capital letter or a digit, \ before a sign to keep it as it is. 200 characters at most
Parameters
pattern: The pattern - String - required
pattern: The pattern - String - required
admin
fake pattern "CMD-####-??"
mentdb
CMD-2248-UK
fake pattern <pattern> <params>
Description
A code from a pattern with the parameters seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A code from a pattern with the parameters seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
pattern: The pattern - String - required
params: The parameters as JSON - String - required
pattern: The pattern - String - required
params: The parameters as JSON - String - required
admin
fake pattern "??-###-??" "{\"seed\": 5}"
mentdb
WG-469-UX
fake uuid
Description
A UUID version 4 in lower case. Use string uuid for a real identifier: this one is reproducible with a seed, so it is not secret. Each call gives another value
A UUID version 4 in lower case. Use string uuid for a real identifier: this one is reproducible with a seed, so it is not secret. Each call gives another value
admin
fake uuid
mentdb
1ee6efaf-f6fc-4e98-86df-5f741afeae27
fake uuid <params>
Description
A UUID version 4 in lower case. Use string uuid for a real identifier: this one is reproducible with a seed, so it is not secret, with parameters: seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A UUID version 4 in lower case. Use string uuid for a real identifier: this one is reproducible with a seed, so it is not secret, with parameters: seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake uuid "{\"seed\": 1}"
mentdb
00e785df-46fc-44fd-b0a4-23667db35a25
fake color
Description
A color. Each call gives another value
A color. Each call gives another value
admin
fake color
mentdb
#e95310
fake color <params>
Description
A color, with parameters: format (hex: #rrggbb, rgb: rgb(r, g, b), or name: a CSS color name), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A color, with parameters: format (hex: #rrggbb, rgb: rgb(r, g, b), or name: a CSS color name), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake color "{\"format\": \"rgb\", \"seed\": 2}"
mentdb
rgb(28, 226, 87)
a name
admin
fake color "{\"format\": \"name\", \"seed\": 2}"
mentdb
gold
fake url
Description
A web address on example.com, example.org or example.net (RFC 2606). Each call gives another value
A web address on example.com, example.org or example.net (RFC 2606). Each call gives another value
admin
fake url
mentdb
https://www.example.org/projet-686
fake url <params>
Description
A web address on example.com, example.org or example.net (RFC 2606), with parameters: domain (example.com, example.org, example.net or one of their subdomains), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
A web address on example.com, example.org or example.net (RFC 2606), with parameters: domain (example.com, example.org, example.net or one of their subdomains), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake url "{\"domain\": \"shop.example.com\", \"seed\": 4}"
mentdb
https://shop.example.com/mois/simple-295
fake ip
Description
An IP address in the documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 of RFC 5737, 2001:db8::/32 of RFC 3849), or in the private ranges. Each call gives another value
An IP address in the documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 of RFC 5737, 2001:db8::/32 of RFC 3849), or in the private ranges. Each call gives another value
admin
fake ip
mentdb
192.0.2.78
fake ip <params>
Description
An IP address in the documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 of RFC 5737, 2001:db8::/32 of RFC 3849), or in the private ranges, with parameters: version (4 or 6), range (documentation, or private: RFC 1918 for IPv4, fd00::/8 for IPv6), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
An IP address in the documentation ranges (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 of RFC 5737, 2001:db8::/32 of RFC 3849), or in the private ranges, with parameters: version (4 or 6), range (documentation, or private: RFC 1918 for IPv4, fd00::/8 for IPv6), seed (an integer or a text: the same seed gives the same result on every run and every machine), locale (fr by default, en for the United States, en_gb for the United Kingdom)
Parameters
params: The parameters as JSON - String - required
params: The parameters as JSON - String - required
admin
fake ip "{\"version\": 6, \"seed\": 1}"
mentdb
2001:db8:6cf1:3523:7c96:bdb3:1b48:1654
a private IPv4
admin
fake ip "{\"range\": \"private\", \"seed\": 1}"
mentdb
192.168.35.51
