Variables

Use variables to generate random data.

Common

Name
Params
Description

embeddedLoopIndex

Embedded block loop index. Use when the number of iterations is greater than 1

Numbers and strings

Name
Params
Description

randomDigit

Integer data between 0 and 9

randomDigitNot

<number*>

Integer data, excluding a given number

randomNumber

randomNumberBetween

<min>,<max>

Random integer between min and max. Without params, number will generate between 0 and 2,147,483,647

randomFloat

<decimals>,<min>,<max>

Random float

randomLettersAndNumbersByPattern

<pattern>

Generate a string where ? characters are replaced with a random letter, and # characters are replaces with a random digit between 0 and 10. Expample: ???-### - tge-465

Text and Paragraphs

Name
Params
Description

randomWord

Generate random single word

randomWords

<amount>

Generate array of random words (max 20)

randomSentence

<amountOfWords>

Generate a sentence containing a given amount of words (max 20)

randomParagraph

<amountOfSentences>

Generate a paragraph of text, containing a given amount of sentences (max 5)

Date and Time

Name
Params
Description

randomUnixTime

Generate an unix time between zero, and now

randomDateTime

Generate a DateTime between January 1, 1970, and now

Internet

Name
Params
Description

randomEmail

Generate an email address

randomSafeEmail

Generate a safe email address

randomFreeEmail

Generate a free email address (free, as in, free sign-up)

randomCompanyEmail

Generate an company email address

randomUserName

Generate a username

randomPassword

<min>,<max>

Generate a password, with a given minimum (6) and maximum length (20).

randomDomainName

Generate a domain name

randomUrl

Generate a URL

randomTld

Generate a tld (top-level domain)

randomSlug

Generate a slug, with a given amount of words (max 10)

randomIpv4

Generate an IPv4 address

randomLocalIpv4

Generate an IPv4 address, inside a local subnet

randomIpv6

Generate an IPv6 address

randomMacAddress

Generate a random MAC address

User Agent

Name
Params
Description

randomUserAgent

Generate a user agent

Payment

Name
Params
Description

randomCreditCardType

Generate a credit card type

randomCreditCardNumber

<bankName>

Generate a credit card number with a given type - 'Visa', ' MasterCard', 'American Express', and 'Discover'

randomCreditCardExpirationDateString

Generate a credit card expiration date (string)

randomCreditCardDetails

Generate an array with credit card details

randomIban

<country>,<bankCode>

Generate an IBAN string with a given country and bank code

randomSwiftBicNumber

Generate a random SWIFT/BIC number string

Color

Name
Params
Description

randomHexColor

Generate a random hex color

randomRgbColor

Generate a random RGB color

File

Name
Params
Description

randomMimeType

Generate a random MIME-type string

randomFileExtension

Generate a random file extension type string

Image

Name
Params
Description

randomImageUrl

<width>,<height>,<textOnImage>

Create image URL from placeholder.com with given params

UUID

Name
Params
Description

randomUuid

Generate a random UUID

Barcode

Name
Params
Description

randomEan13

Generate a random EAN-13 barcode

randomEan8

Generate a random EAN-8 barcode

randomIsbn10

Generate a random ISBN-10 compliant string

randomIsbn13

Generate a random ISBN-13 compliant string

Miscellaneous

Name
Params
Description

randomBoolean

Generate a random bool

randomMd5

Generate a random MD5 hash string

randomSha1

Generate a random SHA-1 hash string

randomSha256

Generate a random SHA-256 hash string

randomLocale

Generate a random locale string

randomCountryCode

Generate a random three-letter country code string

randomLanguageCode

Generate a random two-letter language code string

randomCurrencyCode

Generate a random currency code string

randomEmoji

Generate a random emoji

Version

Name
Params
Description

randomSemver

Generate a random semantic version v2.0.0 string

Last updated