Skip to content

Fake data

random returns a fake value from a provider and method, named as 'Provider.method', with the method’s arguments as named arguments:

{{random 'Name.fullName'}}
{{random 'Number.numberBetween' min=1 max=100}}
{{random 'Address.city' locale='de'}}

locale= works with every method and chooses the language of the value. cachedRandom takes the same names and arguments plus a key=, and returns the same value for the same key everywhere in one response. How to use them is in Fake data with random and cachedRandom.

A method some rows list more than once takes different sets of arguments; use any one of them.

A template writes every argument as text or a number. MockHub turns the text into what the method takes:

Argument type Write Example
A value set, listed below One of its values, in any letter case 'earth'
timestamp A moment in ISO 8601, in UTC '2024-01-01T00:00:00Z'
time A time of day '09:00'
duration Years, months or days in ISO 8601 'P1D'
list Values separated by commas 'alpha,beta'

Address

MethodArgumentsNotes
Address.buildingNumberNone
Address.cityNone
Address.cityNameNone
Address.cityPrefixNone
Address.citySuffixNone
Address.countryNone
Address.countryCodeNone
Address.countyByZipCodepostCode text
Address.eircodeNone
Address.fullAddressNone
Address.latitudeNone
Address.latLonNone
Address.latLon (another form)delimiter text
Address.longitudeNone
Address.lonLatNone
Address.lonLat (another form)delimiter text
Address.mailBoxNone
Address.postcodeNone
Address.secondaryAddressNone
Address.stateNone
Address.stateAbbrNone
Address.streetAddressNone
Address.streetAddress (another form)includeSecondary true/false
Address.streetAddressNumberNone
Address.streetNameNone
Address.streetPrefixNone
Address.streetSuffixNone
Address.timeZoneNone
Address.zipCodeNoneReturns a String representing a standard 5-digit zip code.
Address.zipCodeByStatestateAbbr text
Address.zipCodePlus4NoneReturns a String representing a ZIP+4 code for greater geographic specificity.

Ancient

MethodArgumentsNotes
Ancient.godNone
Ancient.heroNone
Ancient.primordialNone
Ancient.titanNone

Animal

MethodArgumentsNotes
Animal.genusNone
Animal.nameNone
Animal.scientificNameNone
Animal.speciesNone

App

MethodArgumentsNotes
App.authorNone
App.nameNone
App.versionNone

Appliance

MethodArgumentsNotes
Appliance.brandNone
Appliance.equipmentNone

Artist

MethodArgumentsNotes
Artist.nameNone

Australia

MethodArgumentsNotes
Australia.animalsNone
Australia.locationsNone
Australia.statesNone

Aviation

MethodArgumentsNotes
Aviation.aircraftNone
Aviation.airlineNoneReturns an airline name.
Aviation.airplaneNone
Aviation.airportNoneReturns an airport ICAO code.
Aviation.airport (another form)codeType AviationCodeTypeReturns either 3-letter IATA code or 4-letter ICAO code of a random airport
Aviation.airportNameNone
Aviation.armyHelicopterNone
Aviation.cargoNone
Aviation.civilHelicopterNone
Aviation.engineTypeNoneProvides engine type name.
Aviation.flighttype AviationCodeTypeReturns a flight number (IATA or ICAO format).
Aviation.flight (another form)NoneReturns a flight number without specifying flight number format.
Aviation.flightStatusNoneReturns a flight status.
Aviation.gateNoneReturns a gate id.
Aviation.generalNone
Aviation.manufacturerNoneProvides a name of an aviation-related manufacturer.
Aviation.METARNoneProvides a METAR weather report.
Aviation.specialTypeDesignatorNoneProvides an aircraft special type designator.
Aviation.uldCodeNoneReturns an ULD IATA code(prefix).
Aviation.uldTypeNoneReturns an ULD type.
Aviation.warplaneNone

Aws

MethodArgumentsNotes
Aws.accountIdNone
Aws.acmARNNone
Aws.albARNNone
Aws.albTargetGroupARNNone
Aws.regionNone
Aws.route53ZoneIdNone
Aws.securityGroupIdNone
Aws.serviceNone
Aws.subnetIdNone
Aws.vpcIdNone

Azure

MethodArgumentsNotes
Azure.applicationGatewayNone
Azure.appServiceEnvironmentNone
Azure.appServicePlanNone
Azure.bastionHostNone
Azure.containerAppsNone
Azure.containerAppsEnvironmentNone
Azure.containerInstanceNone
Azure.containerRegistryNone
Azure.cosmosDBDatabaseNone
Azure.firewallNone
Azure.keyVaultNone
Azure.loadBalancerNone
Azure.loadTestingNone
Azure.logAnalyticsNone
Azure.managementGroupNone
Azure.mysqlDatabaseNone
Azure.networkSecurityGroupNone
Azure.postgreSQLDatabaseNone
Azure.regionNone
Azure.resourceGroupNone
Azure.serviceBusNone
Azure.serviceBusQueueNone
Azure.serviceBusTopicNone
Azure.springAppsNone
Azure.sqlDatabaseNone
Azure.staticWebAppNone
Azure.storageAccountNone
Azure.subscriptionIdNone
Azure.tenantIdNone
Azure.virtualMachineNone
Azure.virtualNetworkNone
Azure.virtualWanNone

Barcode

MethodArgumentsNotes
Barcode.ean13None
Barcode.ean8None
Barcode.gtin12None
Barcode.gtin13None
Barcode.gtin14None
Barcode.gtin8None
Barcode.typeNone

BloodType

MethodArgumentsNotes
BloodType.aboTypesNoneReturns a ABO blood type
BloodType.bloodGroupNoneReturns a blood group such as O−, O+, A-, A+, B-, B+, AB-, AB+
BloodType.pTypesNoneReturns a P blood type
BloodType.rhTypesNoneReturns an Rh blood type

Book

MethodArgumentsNotes
Book.authorNone
Book.genreNone
Book.publisherNone
Book.titleNone

Bool

MethodArgumentsNotes
Bool.boolNone

Brand

MethodArgumentsNotes
Brand.carNone
Brand.sportNone
Brand.watchNone

Business

MethodArgumentsNotes
Business.creditCardExpiryNone
Business.creditCardNumberNone
Business.creditCardTypeNone
Business.securityCodeNone

Camera

MethodArgumentsNotes
Camera.brandNoneGenerates a random camera brand.
Camera.brandWithModelNoneGenerates a random camera brand with a model.
Camera.modelNoneGenerates a random camera model.

Cannabis

MethodArgumentsNotes
Cannabis.brandsNone
Cannabis.buzzwordsNone
Cannabis.cannabinoidAbbreviationsNone
Cannabis.cannabinoidsNone
Cannabis.categoriesNone
Cannabis.healthBenefitsNone
Cannabis.medicalUsesNone
Cannabis.strainsNone
Cannabis.terpenesNone
Cannabis.typesNone

Cat

MethodArgumentsNotes
Cat.breedNone
Cat.nameNone
Cat.registryNone

Chiquito

MethodArgumentsNotes
Chiquito.expressionsNone
Chiquito.jokesNone
Chiquito.sentencesNone
Chiquito.termsNone

CNPJ

MethodArgumentsNotes
CNPJ.invalidNoneReturn invalid and formatted
CNPJ.invalid (another form)formatted true/falseReturn invalid and (un)formatted
CNPJ.invalid (another form)formatted true/false, multiBranch true/falseReturn invalid and (un)formatted.
CNPJ.validNoneReturn valid and formatted
CNPJ.valid (another form)formatted true/falseReturn valid and formatted
CNPJ.valid (another form)formatted true/false, multiBranch true/falseReturn valid and formatted.

Code

MethodArgumentsNotes
Code.asinNone
Code.ean13None
Code.ean8None
Code.gtin13None
Code.gtin8None
Code.imeiNone
Code.isbn10None
Code.isbn10 (another form)separator true/false
Code.isbn13None
Code.isbn13 (another form)separator true/false
Code.isbnGroupNone
Code.isbnGs1None
Code.isbnRegistrantNone

Coin

MethodArgumentsNotes
Coin.flipNone

Color

MethodArgumentsNotes
Color.hexNone
Color.hex (another form)includeHashSign true/false
Color.nameNone

Commerce

MethodArgumentsNotes
Commerce.brandNone
Commerce.departmentNone
Commerce.materialNone
Commerce.priceNoneGenerate a random price between 0.00 and 100.00
Commerce.price (another form)min decimal, max decimal
Commerce.productNameNone
Commerce.promotionCodeNone
Commerce.promotionCode (another form)digits number
Commerce.vendorNone

Community

MethodArgumentsNotes
Community.characterNone
Community.quoteNone

Company

MethodArgumentsNotes
Company.bsNoneWhen a straight answer won't do, BS to the rescue!
Company.buzzwordNone
Company.catchPhraseNoneGenerate a buzzword-laden catch phrase.
Company.industryNone
Company.logoNoneGenerate a random company logo url in PNG format.
Company.nameNone
Company.professionNone
Company.suffixNone
Company.urlNone

Compass

MethodArgumentsNotes
Compass.abbreviationNoneA compass point as an abbreviation, such as NE or NbW. Each call draws its own.
Compass.azimuthNoneA compass point in degrees, from 0 to 348.75 in steps of 11.25. Each call draws its own.
Compass.wordNoneA compass point by name, such as northeast or north by west. Each call draws its own.

Computer

MethodArgumentsNotes
Computer.brandNone
Computer.linuxNone
Computer.macosNone
Computer.operatingSystemNone
Computer.platformNone
Computer.typeNone
Computer.windowsNone

Construction

MethodArgumentsNotes
Construction.heavyEquipmentNone
Construction.materialsNone
Construction.rolesNone
Construction.standardCostCodesNone
Construction.subcontractCategoriesNone
Construction.tradesNone

Cosmere

MethodArgumentsNotes
Cosmere.allomancersNone
Cosmere.aonsNone
Cosmere.feruchemistsNone
Cosmere.heraldsNone
Cosmere.knightsRadiantNone
Cosmere.metalsNone
Cosmere.shardsNone
Cosmere.shardWorldsNone
Cosmere.sprensNone
Cosmere.surgesNone

Country

MethodArgumentsNotes
Country.capitalNoneReturns a random capital city.
Country.countryCode2NoneReturns a random two-letter ISO 3166-1 alpha-2 country code in lowercase.
Country.countryCode3NoneReturns a random three-letter ISO 3166-1 alpha-3 country code in lowercase.
Country.currencyNone
Country.currencyCodeNone
Country.flagNoneGenerates a URL pointing to the flag image of a random country.
Country.nameNoneReturns a random country name.

CPF

MethodArgumentsNotes
CPF.invalidNoneReturn invalid and formatted
CPF.invalid (another form)formatted true/falseReturn invalid and formatted
CPF.validNoneReturn valid and formatted
CPF.valid (another form)formatted true/falseReturn valid and formatted

Credentials

MethodArgumentsNotes
Credentials.passwordNoneGenerates a password, only with lowercase letters, numbers and with length between 8 and 16 characters.
Credentials.password (another form)includeDigit true/falseGenerates a password, only with lowercase letters and optionally numbers with length between 8 and 16 characters.
Credentials.password (another form)minimumLength number, maximumLength numberGenerates a password, only with lowercase letters, numbers and with min and max length defined by the user.
Credentials.password (another form)minimumLength number, maximumLength number, includeUppercase true/falseGenerates a password with lowercase and optionally uppercase letters, numbers and with min and max length defined by the user.
Credentials.password (another form)minimumLength number, maximumLength number, includeUppercase true/false, includeSpecial true/falseGenerates a password with lowercase letters, numbers and optionally uppercase letters and special characters and with min and max length defined by the user.
Credentials.password (another form)minimumLength number, maximumLength number, includeUppercase true/false, includeSpecial true/false, includeDigit true/falseGenerates a password with lowercase letters and optionally uppercase letters, numbers and special characters and with min and max length defined by the user.
Credentials.userIdNoneGenerates a user ID based on the regex pattern defined in the resource file.
Credentials.userId (another form)regex textGenerates a user ID based on the provided regex pattern.
Credentials.usernameNoneA lowercase username composed of the first_name and last_name joined with a '.'.
Credentials.weakPasswordNoneReturns a weak password from a pre-defined list of common weak passwords.

CryptoCoin

MethodArgumentsNotes
CryptoCoin.coinNone

CultureSeries

MethodArgumentsNotes
CultureSeries.booksNone
CultureSeries.civsNone
CultureSeries.cultureShipClassAbvsNone
CultureSeries.cultureShipClassesNone
CultureSeries.cultureShipsNone
CultureSeries.planetsNone

DcComics

MethodArgumentsNotes
DcComics.heroNone
DcComics.heroineNone
DcComics.nameNone
DcComics.titleNone
DcComics.villainNone

Demographic

MethodArgumentsNotes
Demographic.demonymNone
Demographic.educationalAttainmentNone
Demographic.maritalStatusNone
Demographic.raceNone
Demographic.sexNone

Device

MethodArgumentsNotes
Device.manufacturerNone
Device.modelNameNone
Device.platformNone
Device.serialNone

Dog

MethodArgumentsNotes
Dog.ageNone
Dog.breedNone
Dog.coatLengthNone
Dog.genderNone
Dog.memePhraseNone
Dog.nameNone
Dog.sizeNone
Dog.soundNone

Domain

MethodArgumentsNotes
Domain.firstLevelDomainname textFirst level domain string.
Domain.fullDomainname textFull domain string.
Domain.secondLevelDomainname textSecond level domain string.
Domain.validDomainname textReturn a random valid domain.

DrivingLicense

MethodArgumentsNotes
DrivingLicense.drivingLicensestateAbbreviation text

Drone

MethodArgumentsNotes
Drone.batteryCapacityNone
Drone.batteryTypeNone
Drone.batteryVoltageNone
Drone.batteryWeightNone
Drone.chargingTemperatureNone
Drone.flightTimeNone
Drone.isoNone
Drone.maxAltitudeNone
Drone.maxAngularVelocityNone
Drone.maxAscentSpeedNone
Drone.maxChargingPowerNone
Drone.maxDescentSpeedNone
Drone.maxFlightDistanceNone
Drone.maxResolutionNone
Drone.maxShutterSpeedNone
Drone.maxSpeedNone
Drone.maxTiltAngleNone
Drone.maxWindResistanceNone
Drone.minShutterSpeedNone
Drone.nameNone
Drone.operatingTemperatureNone
Drone.photoFormatNone
Drone.shutterSpeedUnitsNone
Drone.videoFormatNone
Drone.weightNone

DungeonsAndDragons

MethodArgumentsNotes
DungeonsAndDragons.alignmentsNone
DungeonsAndDragons.backgroundsNone
DungeonsAndDragons.citiesNone
DungeonsAndDragons.klassesNone
DungeonsAndDragons.languagesNone
DungeonsAndDragons.meleeWeaponsNone
DungeonsAndDragons.monstersNone
DungeonsAndDragons.racesNone
DungeonsAndDragons.rangedWeaponsNone

Educator

MethodArgumentsNotes
Educator.campusNone
Educator.courseNone
Educator.secondarySchoolNone
Educator.subjectWithNumberNone
Educator.universityNone

ElectricalComponents

MethodArgumentsNotes
ElectricalComponents.activeNone
ElectricalComponents.electromechanicalNone
ElectricalComponents.passiveNone

Emoji

MethodArgumentsNotes
Emoji.catNone
Emoji.smileyNone
Emoji.vehicleNone

FakeDuration

MethodArgumentsNotes
FakeDuration.atMostDaysdaysMax numberReturns a Duration object representing a random duration of days in the given range
FakeDuration.atMostHourshoursMax numberReturns a Duration object representing a random duration of hours in the given range
FakeDuration.atMostMinutesminutesMax numberReturns a Duration object representing a random duration of minutes in the given range
FakeDuration.atMostSecondssecondsMax numberReturns a Duration object representing a random duration of seconds in the given range

FamousLastWords

MethodArgumentsNotes
FamousLastWords.lastWordsNoneGenerates random famous last words.

File

MethodArgumentsNotes
File.extensionNone
File.fileNameNone
File.fileName (another form)dirOrNull text, nameOrNull text, extensionOrNull text, separatorOrNull text
File.mimeTypeNone

Finance

MethodArgumentsNotes
Finance.bicNoneGenerates a random Business Identifier Code (BIC) compliant with ISO 9362.
Finance.creditCardcreditCardType CreditCardTypeGenerates a random credit card number of the specified type.
Finance.creditCard (another form)NoneGenerate a random credit card number of a random type.
Finance.ibanNoneGenerates a random IBAN (International Bank Account Number).
Finance.iban (another form)countryCode textGenerates an IBAN for the given country code.
Finance.usRoutingNumberNoneGenerates a random US bank routing number of 9 characters.

FinancialTerms

MethodArgumentsNotes
FinancialTerms.adjectiveNone
FinancialTerms.adjective (another form)category Category
FinancialTerms.nounNone
FinancialTerms.noun (another form)category Category
FinancialTerms.verbNone
FinancialTerms.verb (another form)category Category

FunnyName

MethodArgumentsNotes
FunnyName.nameNone

GarmentSize

MethodArgumentsNotes
GarmentSize.sizeNoneReturns a garment size

Gender

MethodArgumentsNotes
Gender.binaryTypesNoneReturns a binary gender type
Gender.shortBinaryTypesNoneReturns a short binary gender type
Gender.typesNoneReturns a gender type

GreekPhilosopher

MethodArgumentsNotes
GreekPhilosopher.nameNoneGenerates a random greek philosopher's name.
GreekPhilosopher.quoteNoneGenerates a random greek philosopher's quote.

Hacker

MethodArgumentsNotes
Hacker.abbreviationNone
Hacker.adjectiveNone
Hacker.ingverbNone
Hacker.nounNone
Hacker.verbNone

Hashing

MethodArgumentsNotes
Hashing.md2None
Hashing.md5None
Hashing.sha1None
Hashing.sha256None
Hashing.sha384None
Hashing.sha512None

Hipster

MethodArgumentsNotes
Hipster.wordNone

Hobby

MethodArgumentsNotes
Hobby.activityNone

Hololive

MethodArgumentsNotes
Hololive.talentNone

Horse

MethodArgumentsNotes
Horse.breedNone
Horse.nameNone

House

MethodArgumentsNotes
House.furnitureNoneGenerates a random name of furniture.
House.roomNoneGenerates a random name of a room in a house.

IdNumber

MethodArgumentsNotes
IdNumber.invalidNone
IdNumber.singaporeanFinNone
IdNumber.singaporeanFinBefore2000None
IdNumber.singaporeanUinNone
IdNumber.singaporeanUinBefore2000None
IdNumber.ssnValidNone
IdNumber.validNone

Image

MethodArgumentsNotes
Image.base64BMPNone
Image.base64GIFNone
Image.base64JPEGNone
Image.base64JPGNone
Image.base64PNGNone
Image.base64SVGNone
Image.base64TIFFNone

IndustrySegments

MethodArgumentsNotes
IndustrySegments.industryNone
IndustrySegments.sectorNone
IndustrySegments.subSectorNone
IndustrySegments.superSectorNone

Internet

MethodArgumentsNotes
Internet.botUserAgentvendor BotUserAgent
Internet.botUserAgentAnyNone
Internet.domainNameNone
Internet.domainSuffixNone
Internet.domainWordNone
Internet.emailAddressNone
Internet.emailAddress (another form)name textReturns an email address based on the provided name and a random domain (from "internet.free_email").
Internet.emailSubjectNone
Internet.httpMethodNone
Internet.imageNone
Internet.image (another form)width number, height number
Internet.image (another form)width number, height number, seed text
Internet.ipV4AddressNoneReturns an IPv4 address in dot separated octets.
Internet.ipV4CidrNone
Internet.ipV6AddressNoneReturns an IPv6 address in hh:hh:hh:hh:hh:hh:hh:hh format.
Internet.ipV6CidrNone
Internet.macAddressprefix textReturns a MAC address in the following format: 6-bytes in MM:MM:MM:SS:SS:SS format.
Internet.macAddress (another form)None
Internet.portNoneReturns a port number between 0 and 65535
Internet.port (another form)range PortRangeReturns a port number within given range
Internet.port (another form)from number, to numberReturns a port number between from and to (inclusive)
Internet.privateIpV4AddressNone
Internet.publicIpV4AddressNone
Internet.safeEmailAddressNone
Internet.safeEmailAddress (another form)name textReturns an email address based on the provided name and a safe domain (from "internet.safe_email").
Internet.slugNone
Internet.slug (another form)wordsOrNull list, glueOrNull text
Internet.urlNoneReturns a string representing a web URL, randomly including: http/https scheme, port, path elements (2 or none), file element (1 or none), params (2 or none), anchor (1 or none).
Internet.url (another form)schemeChoice true/false, portChoice true/false, pathChoice true/false, fileChoice true/false, paramsChoice true/false, anchorChoice true/falseReturns a string representing a web URL, with various elements controlled by the caller.
Internet.userAgentuserAgent UserAgent
Internet.userAgent (another form)None
Internet.uuidNoneReturns a UUID (type 4) as String.
Internet.uuidv3NoneReturns a UUID (type 3) as String.
Internet.uuidv4None
Internet.uuidv7None
Internet.webdomainNoneReturns a web domain.

Job

MethodArgumentsNotes
Job.fieldNone
Job.keySkillsNone
Job.positionNone
Job.seniorityNone
Job.titleNone

Kpop

MethodArgumentsNotes
Kpop.boyBandsNone
Kpop.girlGroupsNone
Kpop.iGroupsNone
Kpop.iiGroupsNone
Kpop.iiiGroupsNone
Kpop.soloNone

LanguageCode

MethodArgumentsNotes
LanguageCode.iso639NoneReturns a random 2-letter language code defined in ISO 639.

LargeLanguageModel

MethodArgumentsNotes
LargeLanguageModel.embeddingModelNone
LargeLanguageModel.textModelNone
LargeLanguageModel.tokenizerNone

Locality

MethodArgumentsNotes
Locality.allSupportedLocalesNoneRetrieves list of all locales fake data is available in
Locality.displayNameNoneSelect a locale at random and returns display name of the locale
Locality.localeStringNone
Locality.localeStringWithoutReplacementNone

Location

MethodArgumentsNotes
Location.buildingNone
Location.natureNone
Location.otherworldlyNone
Location.privateSpaceNone
Location.publicSpaceNone
Location.workNone

Lorem

MethodArgumentsNotes
Lorem.characterNone
Lorem.character (another form)includeUppercase true/false
Lorem.charactersNone
Lorem.characters (another form)includeUppercase true/false
Lorem.characters (another form)minimumLength number, maximumLength number
Lorem.characters (another form)minimumLength number, maximumLength number, includeUppercase true/false
Lorem.characters (another form)minimumLength number, maximumLength number, includeUppercase true/false, includeDigit true/false
Lorem.characters (another form)fixedNumberOfCharacters number
Lorem.characters (another form)fixedNumberOfCharacters number, includeUppercase true/false
Lorem.characters (another form)minimumLength number, maximumLength number, includeUppercase true/false, includeSpecial true/false, includeDigit true/false
Lorem.characters (another form)fixedNumberOfCharacters number, includeUppercase true/false, includeDigit true/false
Lorem.characters (another form)fixedNumberOfCharacters number, includeUppercase true/false, includeSpecial true/false, includeDigit true/false
Lorem.fixedStringnumberOfLetters numberCreate a string with a fixed size.
Lorem.maxLengthSentencefixedLength numberCreate a Lorem Ipsum sentence with fixed length.
Lorem.paragraphsentenceCount numberCreates a paragraph with a range (sentenceCount)...(<sentenceCount+3)
Lorem.paragraph (another form)None
Lorem.paragraphsparagraphCount number
Lorem.sentenceNoneCreate a sentence with a random number of words within the range 4..10.
Lorem.sentence (another form)wordCount numberCreate a sentence with a random number of words within the range (wordCount+1)..(wordCount+6).
Lorem.sentence (another form)wordCount number, randomWordsToAdd numberCreate a sentence with a random number of words within the range (wordCount+1)..(wordCount+randomWordsToAdd).
Lorem.sentencessentenceCount number
Lorem.supplementalNone
Lorem.wordNone
Lorem.wordsnum number
Lorem.words (another form)None

Marketing

MethodArgumentsNotes
Marketing.buzzwordsNone

Matz

MethodArgumentsNotes
Matz.quoteNone

Mbti

MethodArgumentsNotes
Mbti.characteristicNone
Mbti.meritNone
Mbti.nameNone
Mbti.personageNone
Mbti.typeNone
Mbti.weaknessNone

Measurement

MethodArgumentsNotes
Measurement.heightNoneGenerates a random height measurement.
Measurement.lengthNoneGenerates a random length measurement.
Measurement.metricHeightNoneGenerates a random metric height measurement.
Measurement.metricLengthNoneGenerates a random metric length measurement.
Measurement.metricVolumeNoneGenerates a random metric volume measurement.
Measurement.metricWeightNoneGenerates a random metric weight measurement.
Measurement.volumeNoneGenerates a random volume measurement.
Measurement.weightNoneGenerates a random weight measurement.

Military

MethodArgumentsNotes
Military.airForceRankNone
Military.armyRankNone
Military.dodPaygradeNone
Military.marinesRankNone
Military.navyRankNone

Money

MethodArgumentsNotes
Money.currencyNoneReturns a currency value in a more descriptive manner like "United States dollar", etc.
Money.currencyCodeNoneReturns a random ISO 4217 currency code (ex.
Money.currencyNumericCodeNoneReturns the 3-digit ISO 4217 numeric code of a random currency.
Money.currencySymbolNone

Mood

MethodArgumentsNotes
Mood.emotionNone
Mood.feelingNone
Mood.toneNone

Mountain

MethodArgumentsNotes
Mountain.nameNone
Mountain.rangeNone

Mountaineering

MethodArgumentsNotes
Mountaineering.mountaineerNone

Music

MethodArgumentsNotes
Music.chordNone
Music.genreNone
Music.instrumentNone
Music.keyNone

Name

MethodArgumentsNotes
Name.femaleFirstNameNoneReturns a random female 'given' name.
Name.firstNameNoneReturns a random 'given' name such as Aaliyah, Aaron, Abagail or Abbey
Name.fullNameNoneReturns the same value as #name()
Name.lastNameNoneReturns a random last name such as Smith, Jones or Baldwin
Name.maleFirstNameNoneReturns a random male 'given' name.
Name.nameNoneA multipart name composed of an optional prefix, a firstname and a lastname or other possible variances based on locale.
Name.nameWithMiddleNoneA multipart name composed of an optional prefix, a given and family name, another 'firstname' for the middle name and an optional suffix such as Jr.
Name.prefixNoneReturns a name prefix such as Mr., Mrs., Ms., Miss, or Dr.
Name.suffixNoneReturns a name suffix such as Jr., Sr., I, II, III, IV, V, MD, DDS, PhD or DVM
Name.titleNoneA three part title composed of a descriptor level and job.

Nation

MethodArgumentsNotes
Nation.capitalCityNone
Nation.flagNone
Nation.isoCountryNone
Nation.isoLanguageNone
Nation.languageNone
Nation.nationalityNone

NatoPhoneticAlphabet

MethodArgumentsNotes
NatoPhoneticAlphabet.codeWordNone

Nigeria

MethodArgumentsNotes
Nigeria.celebritiesNone
Nigeria.foodNone
Nigeria.nameNone
Nigeria.placesNone
Nigeria.schoolsNone

Number

MethodArgumentsNotes
Number.digitNone
Number.digitscount number
Number.negativeNoneReturns a negative number
Number.numberBetweenmin number, max number
Number.numberBetween (another form)min decimal, max decimal
Number.numberBetween (another form)min number, max number
Number.positiveNoneReturns a positive number
Number.randomDigitNoneReturns a random number from 0-9 (both inclusive)
Number.randomDigitNotZeroNoneReturns a random number from 1-9 (both inclusive)
Number.randomDoublemaxNumberOfDecimals number, min number, max number
Number.randomDouble (another form)maxNumberOfDecimals number, min number, max numberReturns a random double
Number.randomNumbernumberOfDigits number
Number.randomNumber (another form)NoneReturns a random number

OlympicSport

MethodArgumentsNotes
OlympicSport.ancientOlympicsNone
OlympicSport.summerOlympicsNone
OlympicSport.summerParalympicsNone
OlympicSport.unusualNone
OlympicSport.winterOlympicsNone
OlympicSport.winterParalympicsNone

Passport

MethodArgumentsNotes
Passport.validNone

PhoneNumber

MethodArgumentsNotes
PhoneNumber.cellPhoneNone
PhoneNumber.cellPhoneInternationalNone
PhoneNumber.extensionNone
PhoneNumber.phoneNumberNoneGenerates locale specific phone number in national format.
PhoneNumber.phoneNumberInternationalNone
PhoneNumber.phoneNumberNationalNone
PhoneNumber.subscriberNumberlength number
PhoneNumber.subscriberNumber (another form)None

Photography

MethodArgumentsNotes
Photography.apertureNone
Photography.brandNone
Photography.cameraNone
Photography.genreNone
Photography.imageTagNone
Photography.isoNone
Photography.lensNone
Photography.shutterNone
Photography.termNone

Planet

MethodArgumentsNotes
Planet.atmosphericCompositionNone
Planet.atmosphericComposition (another form)planetName PlanetName
Planet.axialTiltNone
Planet.axialTilt (another form)planetName PlanetName
Planet.classificationNone
Planet.classification (another form)planetName PlanetName
Planet.densityNone
Planet.density (another form)planetName PlanetName
Planet.discoveryYearNone
Planet.discoveryYear (another form)planetName PlanetName
Planet.eccentricityNone
Planet.eccentricity (another form)planetName PlanetName
Planet.equatorialGravityNone
Planet.equatorialGravity (another form)planetName PlanetName
Planet.equatorialRadiusNone
Planet.equatorialRadius (another form)planetName PlanetName
Planet.escapeVelocityNone
Planet.escapeVelocity (another form)planetName PlanetName
Planet.gravitationParametersNone
Planet.gravitationParameters (another form)planetName PlanetName
Planet.inclinationNone
Planet.inclination (another form)planetName PlanetName
Planet.lengthOfDayNone
Planet.lengthOfDay (another form)planetName PlanetName
Planet.massNone
Planet.mass (another form)planetName PlanetName
Planet.meanAirTemperatureNone
Planet.meanAirTemperature (another form)planetName PlanetName
Planet.meanDistanceFromTheSunNone
Planet.meanDistanceFromTheSun (another form)planetName PlanetName
Planet.meanOrbitalSpeedNone
Planet.meanOrbitalSpeed (another form)planetName PlanetName
Planet.meanSurfaceTemperatureNone
Planet.meanSurfaceTemperature (another form)planetName PlanetName
Planet.nameNone
Planet.numberOfKnownMoonsNone
Planet.numberOfKnownMoons (another form)planetName PlanetName
Planet.orbitalPeriodNone
Planet.orbitalPeriod (another form)planetName PlanetName
Planet.planetaryDiscriminantNone
Planet.planetaryDiscriminant (another form)planetName PlanetName
Planet.ringsNone
Planet.rings (another form)planetName PlanetName
Planet.rotationPeriodNone
Planet.rotationPeriod (another form)planetName PlanetName
Planet.surfaceAreaNone
Planet.surfaceArea (another form)planetName PlanetName
Planet.symbolNone
Planet.symbol (another form)planetName PlanetName
Planet.volumeNone
Planet.volume (another form)planetName PlanetName

ProgrammingLanguage

MethodArgumentsNotes
ProgrammingLanguage.creatorNone
ProgrammingLanguage.nameNone

Pronouns

MethodArgumentsNotes
Pronouns.objectiveNoneGenerates a gender neutral objective pronoun
Pronouns.possessiveNoneGenerates a gender neutral possessive pronoun
Pronouns.reflexiveNoneGenerates a gender neutral reflexive pronoun
Pronouns.subjectiveNoneGenerates a gender neutral subjective pronoun

Relationship

MethodArgumentsNotes
Relationship.anyNone
Relationship.directNone
Relationship.extendedNone
Relationship.inLawNone
Relationship.parentNone
Relationship.siblingNone
Relationship.spouseNone

Restaurant

MethodArgumentsNotes
Restaurant.descriptionNone
Restaurant.nameNone
Restaurant.namePrefixNone
Restaurant.nameSuffixNone
Restaurant.reviewNone
Restaurant.typeNone

Robin

MethodArgumentsNotes
Robin.quoteNone

RockBand

MethodArgumentsNotes
RockBand.nameNone

Science

MethodArgumentsNotes
Science.bosonsNone
Science.elementNone
Science.elementSymbolNone
Science.leptonsNone
Science.quarkNone
Science.scientistNone
Science.toolNone
Science.unitNone

Shakespeare

MethodArgumentsNotes
Shakespeare.asYouLikeItQuoteNone
Shakespeare.hamletQuoteNone
Shakespeare.kingRichardIIIQuoteNone
Shakespeare.romeoAndJulietQuoteNone

Sip

MethodArgumentsNotes
Sip.bodyStringNoneBody example of SDP type can be found in https://tools.ietf.org/html/rfc5621.
Sip.clientErrorResponseCodeNoneClient error code, the various response codes are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.clientErrorResponsePhraseNoneClient error phrase, the various response phrases are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.contentTypeNoneContent types are based on https://tools.ietf.org/html/rfc5621 and https://tools.ietf.org/html/rfc3261.
Sip.globalErrorResponseCodeNoneGlobal error code, the various response codes are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.globalErrorResponsePhraseNoneServer error phrase, the various response phrases are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.messagingPortNoneGet a 4 digit random port for SIP messaging.
Sip.methodNoneThe various SIP methods are listed in https://en.wikipedia.org/wiki/Session_Initiation_Protocol.
Sip.nameAddressNoneReturn a valid name address to use with to/from headers.
Sip.provisionalResponseCodeNoneProvisional code, the various response codes are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.provisionalResponsePhraseNoneProvisional phrase, the various response phrases are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.redirectResponseCodeNoneRedirection code, the various response codes are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.redirectResponsePhraseNoneRedirection phrase, the various response phrases are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.rtpPortNoneGet a 5 digit positive even port for rtp udp communication.
Sip.serverErrorResponseCodeNoneServer error code, the various response codes are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.serverErrorResponsePhraseNoneServer error phrase, the various response phrases are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.successResponseCodeNoneSuccess code, the various response codes are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.
Sip.successResponsePhraseNoneSuccess phrase, the various response phrases are listed in https://en.wikipedia.org/wiki/List_of_SIP_response_codes.

Size

MethodArgumentsNotes
Size.adjectiveNone

SlackEmoji

MethodArgumentsNotes
SlackEmoji.activityNone
SlackEmoji.celebrationNone
SlackEmoji.customNone
SlackEmoji.emojiNone
SlackEmoji.foodAndDrinkNone
SlackEmoji.natureNone
SlackEmoji.objectsAndSymbolsNone
SlackEmoji.peopleNone
SlackEmoji.travelAndPlacesNone

Space

MethodArgumentsNotes
Space.agencyNone
Space.agencyAbbreviationNone
Space.companyNone
Space.constellationNone
Space.distanceMeasurementNone
Space.galaxyNone
Space.meteoriteNone
Space.moonNone
Space.nasaSpaceCraftNone
Space.nebulaNone
Space.planetNone
Space.starNone
Space.starClusterNone

Stock

MethodArgumentsNotes
Stock.exchangesNone
Stock.lseSymbolNone
Stock.nsdqSymbolNone
Stock.nseSymbolNone
Stock.nyseSymbolNone

Subscription

MethodArgumentsNotes
Subscription.paymentMethodsNone
Subscription.paymentTermsNone
Subscription.plansNone
Subscription.statusesNone
Subscription.subscriptionTermsNone

Superhero

MethodArgumentsNotes
Superhero.descriptorNone
Superhero.nameNone
Superhero.powerNone
Superhero.prefixNone
Superhero.suffixNone

Team

MethodArgumentsNotes
Team.creatureNone
Team.nameNone
Team.sportNone
Team.stateNone

Text

MethodArgumentsNotes
Text.characterNone
Text.lowercaseCharacterNone
Text.textNone
Text.text (another form)includeDigit true/false
Text.text (another form)length number
Text.text (another form)minimumLength number, maximumLength number
Text.text (another form)minimumLength number, maximumLength number, includeUppercase true/false
Text.text (another form)minimumLength number, maximumLength number, includeUppercase true/false, includeSpecial true/false
Text.text (another form)minimumLength number, maximumLength number, includeUppercase true/false, includeSpecial true/false, includeDigit true/falseFor example, expression text(5, 15, true, false, true generates a random string of length 5 to 15 containing at least one upper case letter and at least one digit.
Text.uppercaseCharacterNone

Time

MethodArgumentsNotes
Time.betweenfrom time, to timeGenerates a random time between two times.
Time.between (another form)from time, to time, pattern textGenerates a string representation of a random time between two times.
Time.futureatMost number, unit ChronoUnitGenerates a future time from now.
Time.future (another form)atMost number, unit ChronoUnit, pattern textGenerates and converts to string representation a future time from now.
Time.future (another form)atMost number, minimum number, unit ChronoUnitGenerates a future time from now, with a minimum time.
Time.future (another form)atMost number, minimum number, unit ChronoUnit, pattern textGenerates and converts to string representation of a future time from now, with a minimum time.
Time.pastatLeast number, unit ChronoUnitGenerates a past time from now.
Time.past (another form)atMost number, unit ChronoUnit, pattern textGenerates a string representation of a past time from now.
Time.past (another form)atMost number, minimum number, unit ChronoUnitGenerates a past time from now, with a minimum time.
Time.past (another form)atMost number, minimum number, unit ChronoUnit, pattern textGenerates and converts to string representation a past time from now, with a minimum time.

TimeAndDate

MethodArgumentsNotes
TimeAndDate.betweenfrom timestamp, to timestampGenerates a random date between two dates.
TimeAndDate.between (another form)from timestamp, to timestamp, pattern textGenerates a string representation of a random date between two dates.
TimeAndDate.birthdayNoneGenerates a random birthday between 65 and 18 years ago from now.
TimeAndDate.birthday (another form)pattern textGenerates a string representation of a random birthday between 65 and 18 years ago from now.
TimeAndDate.birthday (another form)minAge number, maxAge numberGenerates a random birthday between two ages from now.
TimeAndDate.birthday (another form)minAge number, maxAge number, pattern textGenerates and converts to string representation a random birthday between two ages from now.
TimeAndDate.durationmax number, unit ChronoUnitGenerates a random Duration lower than max.
TimeAndDate.duration (another form)min number, max number, unit ChronoUnitGenerates a random Duration between min and max.
TimeAndDate.futureNoneGenerates a future date from now.
TimeAndDate.future (another form)atMost number, unit TimeUnitGenerates a future date from now.
TimeAndDate.future (another form)atMost number, unit TimeUnit, pattern textGenerates and converts to string representation a future date from now.
TimeAndDate.future (another form)atMost number, minimum number, unit TimeUnitGenerates a future date from now, with a minimum time.
TimeAndDate.future (another form)atMost number, minimum number, unit TimeUnit, pattern textGenerates and converts to string representation of a future date from now, with a minimum time.
TimeAndDate.future (another form)atMost number, unit TimeUnit, referenceDate timestampGenerates a future date relative to the referenceDate.
TimeAndDate.future (another form)atMost number, unit TimeUnit, referenceDate timestamp, pattern textGenerates and converts to string representation a future date relative to the referenceDate.
TimeAndDate.pastNoneGenerates a past date from now.
TimeAndDate.past (another form)atMost number, unit TimeUnitGenerates a past date from now.
TimeAndDate.past (another form)atMost number, unit TimeUnit, pattern textGenerates a string representation of a past date from now.
TimeAndDate.past (another form)atMost number, minimum number, unit TimeUnitGenerates a past date from now, with a minimum time.
TimeAndDate.past (another form)atMost number, minimum number, unit TimeUnit, pattern textGenerates and converts to string representation a past date from now, with a minimum time.
TimeAndDate.past (another form)atMost number, unit TimeUnit, referenceDate timestampGenerates a past date relative to the referenceDate.
TimeAndDate.past (another form)atMost number, unit TimeUnit, referenceDate timestamp, pattern textGenerates a string representation of a past date relative to the referenceDate.
TimeAndDate.periodmin duration, max durationGenerates a random Period between min and max.

Tire

MethodArgumentsNotes
Tire.aspectRatioNone
Tire.codeNoneReturns a Tire Code, such as 205/60R16.
Tire.code (another form)prefix textReturns a Tire Code prefixed with the provided String.
Tire.code (another form)defaultPrefix true/falseReturns a Tire Code optionally prefixed with the default prefix (P for passenger vehicle).
Tire.constructionNone
Tire.loadIndexNone
Tire.rimSizeNone
Tire.speedratingNone
Tire.vehicleTypeNone
Tire.widthNone

Transport

MethodArgumentsNotes
Transport.typeNone

Twitter

MethodArgumentsNotes
Twitter.getLinkusername text, extraLength numberReturn a fake link to a Twitter message.
Twitter.textkeywords list, sentenceMaxLength number, wordMaxLength numberTo fake a new text context for the Twitter.
Twitter.twitterIdexpectedLength numberUsed to fake a new Twitter ID without collision using both current time and uuid as seeds.
Twitter.userIdNone
Twitter.userNameNone

Unique

MethodArgumentsNotes
Unique.fetchFromYamlkey textReturns a random value for a data key that is guaranteed to be unique for that key and locale.

University

MethodArgumentsNotes
University.degreeNone
University.nameNone
University.placeNone
University.prefixNone
University.suffixNone

Vehicle

MethodArgumentsNotes
Vehicle.carOptionsNone
Vehicle.carOptions (another form)min number, max number
Vehicle.carTypeNone
Vehicle.colorNone
Vehicle.doorsNone
Vehicle.driveTypeNone
Vehicle.engineNone
Vehicle.fuelTypeNone
Vehicle.licensePlateNone
Vehicle.licensePlate (another form)stateAbbreviation text
Vehicle.makeNone
Vehicle.makeAndModelNone
Vehicle.manufacturerNone
Vehicle.modelNone
Vehicle.model (another form)make text
Vehicle.standardSpecsNone
Vehicle.standardSpecs (another form)min number, max number
Vehicle.styleNone
Vehicle.transmissionNone
Vehicle.upholsteryNone
Vehicle.upholsteryColorNone
Vehicle.upholsteryFabricNone
Vehicle.vinNone

Verb

MethodArgumentsNotes
Verb.baseNoneGenerates the base form of a random verb.
Verb.ingFormNoneGenerates a random verb in -ing form.
Verb.pastNoneGenerates a random verb in past tense.
Verb.pastParticipleNoneGenerates a random verb in past participle tense.
Verb.simplePresentNoneGenerates a random verb in simple present tense.

Weather

MethodArgumentsNotes
Weather.descriptionNoneGenerates a short weather description.
Weather.temperatureCelsiusNoneGenerates a random temperature celsius between -30 and 38 degrees.
Weather.temperatureCelsius (another form)minTemperature number, maxTemperature numberGenerates a random temperature celsius between two temperatures.
Weather.temperatureFahrenheitNoneGenerates a random temperature fahrenheit between -22 and 100 degrees.
Weather.temperatureFahrenheit (another form)minTemperature number, maxTemperature numberGenerates a random temperature fahrenheit between two temperatures.

Word

MethodArgumentsNotes
Word.adjectiveNone
Word.adverbNone
Word.conjunctionNone
Word.interjectionNone
Word.nounNone
Word.prepositionNone
Word.verbNone

Yoda

MethodArgumentsNotes
Yoda.quoteNone

Zodiac

MethodArgumentsNotes
Zodiac.signNoneReturns a Zodiac sign

Value sets

Arguments of these types take one of a fixed list of values.

BotUserAgent

Search engine crawler the user agent string imitates

GOOGLEBOT, BINGBOT, DUCKDUCKBOT, BAIDUSPIDER, YANDEXBOT

Category

Area of banking the term comes from

ACCOUNT_MANAGEMENT, TRANSACTIONS, PAYMENTS, TRANSFERS, INVESTMENTS, LOANS, ALERTS_AND_NOTIFICATIONS, CUSTOMER_SUPPORT, SECURITY, REGULATORY_COMPLIANCE, MARKET_DATA, USER_ACTIVITY, BANKING, CARDS, CRYPTOCURRENCY, INSURANCE, REWARDS_AND_LOYALTY, MISCELLANEOUS

ChronoUnit

Time unit for duration calculations

NANOS, MICROS, MILLIS, SECONDS, MINUTES, HOURS, HALF_DAYS, DAYS, WEEKS, MONTHS, YEARS, DECADES, CENTURIES, MILLENNIA, ERAS, FOREVER

Locale

Language and region of the generated data. A locale outside this list produces English data.

ar, be, bg, by, ca, ca_CAT, cs, cs_CZ, da_DK, de, de_AT, de_CH, el_GR, en, en_AU, en_BORK, en_CA, en_GB, en_IE, en_IN, en_MD, en_MS, en_NEP, en_NG, en_NZ, en_PAK, en_PH, en_PK, en_SG, en_UG, en_US, en_ZA, en_au_ocker, es, es_AR, es_MX, es_PY, et, fa, fi_FI, fr, fr_CA, fr_CH, he, hr, hu, hy, id, id_ID, it, ja, ka, ko, lv, mk, nb_NO, nl, nl_BE, no_NO, pl, pt, pt_BR, ro_MD, ru, ru_MD, sk, sq, sv, sv_SE, ta, ta_IN, th, tr, uk, uz, vi, zh_CN, zh_TW

PlanetName

Planet of the Solar System

JUPITER, MARS, VENUS, URANUS, MERCURY, NEPTUNE, EARTH, SATURN, PLUTO

PortRange

Range the port number is drawn from

WellKnownPorts, RegisteredPorts, DynamicPrivatePorts

TimeUnit

Unit of time

NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS

UserAgent

Browser family the user agent string imitates

AOL, CHROME, FIREFOX, INTERNET_EXPLORER, NETSCAPE, OPERA, SAFARI

Report a problem with this page