These are the available Custom Functions:



No.Return TypeGenerated Test Data TypeTest Data FunctionDescription
1longNumberrandomNumber(int min, int max)Returns a random number between min and max(less than 2,147,483,648)
2intNumberrandomDigit()Returns a random number between 0 and 9
3intNumberrandomDigitNotZero()Returns a random number between 1 and 9
4longNumberrandomNumber(long min, long max)Returns a random number between min and max(max and min can be very big numbers less than 2 raised to 63)
5longNumbernumber of digits(int numberOfDigits, boolean strict)Returns a ranbom number with less than or equal to specified number of digits. Strictly specified number of digits if second argument is true
6longNumberrandomNumber()Returns a ranbom number
7doubleNumberrandomDouble(int maxNumberOfDecimals, int min, int max)Returns a random double between min and max with maximum specified number of decimal places
8doubleNumberrandomDouble(int maxNumberOfDecimals, long min, long max)Returns a random double between min and max with maximum specified number of decimal places
9longNumberdigits(int count)Returns a random number with specified number of digits
10longNumberdigit()Returns a random digit
11StringNamename()Returns a random name
12StringNamenameWithMiddle()Returns a random name with a middle name
13StringNamefullName()Returns a random full name
14StringNamefirstName()Returns a random first name
15StringNamelastName()Returns a random last name
16StringNameprefix()Returns a random prefix
17StringNamesuffix()Returns a random suffix
18StringNametitle()Returns a random title
19StringNameusername()Returns a random username
20StringAddresscellPhoneReturns a random Phone number
21StringAddressphoneNumberReturns a random Phone number
22StringInternetdomainWord()Generates a random domain word
23StringInternetdomainSuffix()Generates a random domain suffix such as .com, .org
24StringInternetemailAddress()Generates a random valid email ID
25StringInternetemailAddress(String localPart)Generates a random valid email ID with local part
26StringInternetsafeEmailAddress()Generates a random valid email ID
27StringInternetsafeEmailAddress(String localPart)Generates a random valid email ID with local part
28StringInterneturl()Generates a random url.
29StringInternetimage()Generates a random image url based on the lorempixel service.
30StringInternetpassword()Generates a strong password
31StringInternetuuid()Generates a universally unique Identifier
32StringFileextensionGenerates a random extension
33StringFilemimeTypeGenerates a random file MIME type
34StringFilefileNameGenerates a random file name
35StringFilefileNameGenerates a random file name
36StringAddressstreetNameGenerates a valid Street name
37StringAddressstreetAddressNumberGenerates a valid Street Address number
38StringAddressstreetAddressGenerates a valid Street Address
39StringAddressstreetAddressGenerates a valid Street Address
40StringAddresssecondaryAddressGenerates a valid Secondary Address
41StringAddresszipCodeGenerates a valid zipcode
42StringAddresszipCodeByStateGenerates a valid zip code for given State
43StringAddressstreetSuffixGenerates a valid Street suffix
44StringAddressstreetPrefixGenerates a valid Street Prefix
45StringAddresscitySuffixGenerates a valid City Suffix
46StringAddresscityPrefixGenerates a valid City prefix
47StringAddresscityGenerates a valid city
48StringAddresscityNameGenerates a valid city name
49StringAddressstateGenerates a valid state
50StringAddressstateAbbrGenerates a valid state Abbreviation
51StringAddressfirstNameGenerates a valid First name
52StringAddresslastNameGenerates a valid Last name
53StringAddresslatitudegenerates a valid latitude
54StringAddresslongitudeGenerates a valid longitude
55StringAddresstimeZoneGenerates a valid timeZone
56StringAddresscountryGenerates a valid Country name
57StringAddresscountryCodeGenerates a valid country code
58StringAddressbuildingNumberGenerates a valid building Number
59StringAddressfullAddressGenerates a valid full address
60StringAddressnameGenerates a valid name
61StringAddresssuffixGenerates a valid name suffix
62StringAddressindustryGenerates a valid work Industry name
63StringAddressprofessionGenerates a valid profession name
64DateDatefuture(int atMost, TimeUnit unit Date ReferenceDate, String format)Generates a future date from now.
65DateDatefuture(int atMost, TimeUnit unit, String format)Generates a future date from now.
66DateDatecurrent(String format)Generates data with present date
67DateDatebetween(Date from, Date to, String format)Generates a random date between two dates.



More functions to be added soon..