Skip to content

New Feature Request: Get HEX randomly by length and letter type. #60

@J9B10

Description

@J9B10

Hello.

I'm new to programming.

I really like this random app.

I need to generate a HEX (Hexadecimal) string of specific length.

But I see I didn't find this function random.hex(length, options) in random.

It would be great to be able to generate HEX values ​​of custom length and letter type.

For example:

let get40 = random.hex(40, both); // options: capital, lowercase, both.

console.log(get40); // 0397032E0f12958AC8EC58728018e299e883254b

Thank you for your attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions