Skip to content

hex

hex(context): Dependent<string>

Generate a hexidecimal (0-9a-f) string arbitrary.

Example

random(hex())
// => "deadbeef"

Parameters

context

MaybePartial<StringGenerator> = {}

Returns

Dependent<string>

An arbitrary hexadecimal string.