Generates a random bigint based on JSON schema constraints.
JSON schema with integer constraints (min, max, etc.)
Random bigint within the specified constraints
Generates a random boolean value.
Random boolean value or undefined
Generates a random base64-encoded byte string.
Random base64 string
Generates a random date string in ISO 8601 format (YYYY-MM-DD).
Optional
props: { maximum?: number; minimum?: number }Optional constraints for minimum and maximum timestamp values
Random date string
Generates a random datetime string in ISO 8601 format.
Optional
props: { maximum?: number; minimum?: number }Optional constraints for minimum and maximum timestamp values
Random datetime string
Generates a random duration string in ISO 8601 format.
Random duration string
Generates a random email address.
Random email address
Generates a random hostname.
Random hostname
Generates a random internationalized email address.
Random IDN email address
Generates a random internationalized hostname.
Random IDN hostname
Generates a random integer based on JSON schema constraints.
JSON schema with integer constraints (min, max, etc.)
Random integer within the specified constraints
Generates a random IPv4 address.
Random IPv4 address
Generates a random IPv6 address.
Random IPv6 address
Generates a random IRI (Internationalized Resource Identifier).
Random IRI
Generates a random IRI reference.
Random IRI reference
Generates a random JSON pointer string.
Random JSON pointer
Generates a random number based on JSON schema constraints.
JSON schema with number constraints (min, max, etc.)
Random number within the specified constraints
Generates a random password string.
Random password
Generates a random string matching the given regular expression pattern.
Regular expression pattern to match
Random string matching the pattern
Generates a random regular expression pattern string.
Random regex pattern
Generates a random relative JSON pointer string.
Random relative JSON pointer
Generates a random string based on JSON schema constraints.
JSON schema with string constraints (minLength, maxLength, pattern, etc.)
Random string matching the specified constraints
Generates a random time string in ISO 8601 format (HH:MM:SS).
Random time string
Generates a random URI (Uniform Resource Identifier).
Random URI
Generates a random URI reference.
Random URI reference
Generates a random URI template.
Random URI template
Generates a random URL (Uniform Resource Locator).
Random URL
Generates a random UUID (Universally Unique Identifier).
Random UUID string in standard format
Interface for generating random values for various data types.
IRandomGenerator
defines the contract for generating random values that can be used by typia for creating mock data, testing scenarios, and random value generation based on JSON schema constraints.This interface supports generating random values for:
Author
Jeongho Nam - https://github.com/samchon
Example