Hex generator

Returns a lowercase hexadecimal number. The bounds are inclusive.

number.hex

Generator settings

Generate data to see results here.

Parameters & Example

Returns a lowercase hexadecimal number. The bounds are inclusive.

number.hex(options?: number | { min?: number; max?: number; })
options
Maximum value or options object.
options.min
Lower bound for generated number. Defaults to 0.
options.max
Upper bound for generated number. Defaults to 15.

Example

"a"

Use synthetic data in a test environment.

Related generators

Explore scenarios