Interface IRandomGenerator
Properties
Methods
array
- array<T>(closure, count?, unique?): T[]
Parameters
- closure: ((index: number) => T)
Optional
count: numberOptional
unique: boolean
Returns T[]
bigint
- bigint(minimum?, maximum?): bigint
Parameters
Optional
minimum: bigintOptional
maximum: bigint
Returns bigint
boolean
- boolean(): boolean
Returns boolean
byte
- byte(): string
Returns string
date
- date(minimum?, maximum?): string
Parameters
Optional
minimum: numberOptional
maximum: number
Returns string
datetime
- datetime(minimum?, maximum?): string
Parameters
Optional
minimum: numberOptional
maximum: number
Returns string
duration
- duration(): string
Returns string
email
- email(): string
Returns string
hostname
- hostname(): string
Returns string
idnEmail
- idnEmail(): string
Returns string
idnHostname
- idnHostname(): string
Returns string
integer
- integer(minimum?, maximum?): number
Parameters
Optional
minimum: numberOptional
maximum: number
Returns number
ipv4
- ipv4(): string
Returns string
ipv6
- ipv6(): string
Returns string
iri
- iri(): string
Returns string
iriReference
- iriReference(): string
Returns string
jsonPointer
- jsonPointer(): string
Returns string
length
- length(): number
Returns number
number
- number(minimum?, maximum?): number
Parameters
Optional
minimum: numberOptional
maximum: number
Returns number
password
- password(): string
Returns string
pattern
- pattern(regex): string
Returns string
regex
- regex(): string
Returns string
relativeJsonPointer
- relativeJsonPointer(): string
Returns string
string
- string(length?): string
Returns string
time
- time(): string
Returns string
uri
- uri(): string
Returns string
uriReference
- uriReference(): string
Returns string
uriTemplate
- uriTemplate(): string
Returns string
url
- url(): string
Returns string
uuid
- uuid(): string
Returns string