Octal generator

Returns an octal string.

string.octal

Generator settings

Generate data to see results here.

Parameters & Example

Returns an octal string.

string.octal(options?: { length?, prefix? })
options
The optional options object.
options.length
The length of the string (excluding the prefix) to generate either as a fixed length or as a length range. Defaults to 1.
options.prefix
Prefix for the generated number. Defaults to '0o'.

Example

"0o5"

Use synthetic data in a test environment.

Related generators

Explore scenarios