These are the available Custom Functions:


No.
Return Type
Generated Test Data Type
Test Data Function
Description
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 ranbom number with specified number of digits
10longNumberdigits()Returns a ranbom 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





20StringInternetdomainName()Generates a random valid domain name
21StringInternetdomainWord()Generates a random domain word
22StringInternetdomainSuffix()Generates a random domain suffix such as .com, .org
23StringInternetemailAddress()Generates a random valid domain name
24StringInternetemailAddress(String localPart)
25StringInternetsafeEmailAddress()
26StringInternetsafeEmailAddress(String localPart)
27StringInterneturl()
28StringInternetimage()Generates a random image url based on the lorempixel service.
29StringInternetpassword()Generates a strong password
30StringInternetuuid()





31StringDatefuture(int atMost, TimeUnit unit Date ReferenceDate, String format)Generates a future date from now.
32StringDatefuture(int atMost, TimeUnit unit, String format)Generates a future date from now.
33StringDatecurrent(String format)Generates data with present date
34StringDatebetween(Date from, Date to, String format)Generates a random date between two dates.


More functions to be added soon..