Methods
-
<static> array(length)
-
returns an array with values generated by faker.datatype.number and faker.datatype.string
Parameters:
Name Type Description length
number of the returned array
-
<static> array(length)
-
returns an array with values generated by faker.datatype.number and faker.datatype.string
Parameters:
Name Type Description length
number of the returned array
-
<static> boolean()
-
boolean
-
<static> boolean()
-
boolean
-
<static> datetime(options,)
-
method returns a Date object using a random number of milliseconds since 1. Jan 1970 UTC Caveat: seeding is not working
Parameters:
Name Type Description options,
mixed pass min OR max as number of milliseconds since 1. Jan 1970 UTC
-
<static> datetime(options,)
-
method returns a Date object using a random number of milliseconds since 1. Jan 1970 UTC Caveat: seeding is not working
Parameters:
Name Type Description options,
mixed pass min OR max as number of milliseconds since 1. Jan 1970 UTC
-
<static> float(options)
-
returns a single random floating-point number based on a max number or range
Parameters:
Name Type Description options
mixed -
<static> float(options)
-
returns a single random floating-point number based on a max number or range
Parameters:
Name Type Description options
mixed -
<static> hexaDecimal(count)
-
hexaDecimal
Parameters:
Name Type Description count
number defaults to 1
-
<static> hexaDecimal(count)
-
hexaDecimal
Parameters:
Name Type Description count
number defaults to 1
-
<static> json()
-
returns json object with 7 pre-defined properties
-
<static> json()
-
returns json object with 7 pre-defined properties
-
<static> number(options)
-
returns a single random number based on a max number or range
Parameters:
Name Type Description options
mixed {min, max, precision}
-
<static> number(options)
-
returns a single random number based on a max number or range
Parameters:
Name Type Description options
mixed {min, max, precision}
-
<static> string(length:)
-
Returns a string, containing UTF-16 chars between 33 and 125 ('!' to '}')
Parameters:
Name Type Description length:
number length of generated string, default = 10, max length = 2^20
-
<static> string(length:)
-
Returns a string, containing UTF-16 chars between 33 and 125 ('!' to '}')
Parameters:
Name Type Description length:
number length of generated string, default = 10, max length = 2^20
-
<static> uuid()
-
uuid
-
<static> uuid()
-
uuid