Methods
-
<static> alpha(options)
-
alpha. returns lower/upper alpha characters based count and upcase options
Parameters:
Name Type Description options
mixed // defaults to { count: 1, upcase: false, bannedChars: [] }
-
<static> alpha(options)
-
alpha. returns lower/upper alpha characters based count and upcase options
Parameters:
Name Type Description options
mixed // defaults to { count: 1, upcase: false, bannedChars: [] }
-
<static> alphaNumeric(count)
-
alphaNumeric
Parameters:
Name Type Description count
number defaults to 1 {mixed} options // defaults to { bannedChars: [] } options.bannedChars - array of characters which should be banned in new string
-
<static> alphaNumeric(count)
-
alphaNumeric
Parameters:
Name Type Description count
number defaults to 1 {mixed} options // defaults to { bannedChars: [] } options.bannedChars - array of characters which should be banned in new string
-
<static> arrayElement(array)
-
takes an array and returns a random element of the array
Parameters:
Name Type Description array
array -
<static> arrayElement(array)
-
takes an array and returns a random element of the array
Parameters:
Name Type Description array
array -
<static> arrayElements(array, count)
-
takes an array and returns a subset with random elements of the array
Parameters:
Name Type Description array
array count
number number of elements to pick
-
<static> arrayElements(array, count)
-
takes an array and returns a subset with random elements of the array
Parameters:
Name Type Description array
array count
number number of elements to pick
-
<static> boolean()
-
boolean
-
<static> boolean()
-
boolean
-
<static> float(options)
-
Parameters:
Name Type Description options
mixed - Deprecated:
-
- returns a single random floating-point number based on a max number or range
-
<static> float(options)
-
Parameters:
Name Type Description options
mixed - Deprecated:
-
- returns a single random floating-point number based on a max number or range
-
<static> hexaDecimal(count)
-
Parameters:
Name Type Description count
number defaults to 1
- Deprecated:
-
- hexaDecimal
-
<static> hexaDecimal(count)
-
Parameters:
Name Type Description count
number defaults to 1
- Deprecated:
-
- hexaDecimal
-
<static> image()
-
locale
-
<static> image()
-
locale
-
<static> locale()
-
locale
-
<static> locale()
-
locale
-
<static> number(options)
-
Parameters:
Name Type Description options
mixed {min, max, precision}
- Deprecated:
-
- returns a single random number based on a max number or range
-
<static> number(options)
-
Parameters:
Name Type Description options
mixed {min, max, precision}
- Deprecated:
-
- returns a single random number based on a max number or range
-
<static> objectElement(object, field)
-
takes an object and returns a random key or value
Parameters:
Name Type Description object
object field
mixed -
<static> objectElement(object, field)
-
takes an object and returns a random key or value
Parameters:
Name Type Description object
object field
mixed -
<static> uuid()
-
- Deprecated:
-
- uuid
-
<static> uuid()
-
- Deprecated:
-
- uuid
-
<static> word(type)
-
word
Parameters:
Name Type Description type
string -
<static> word(type)
-
word
Parameters:
Name Type Description type
string -
<static> words(count)
-
randomWords
Parameters:
Name Type Description count
number defaults to a random value between 1 and 3
-
<static> words(count)
-
randomWords
Parameters:
Name Type Description count
number defaults to a random value between 1 and 3