random icon indicating copy to clipboard operation
random copied to clipboard

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

Open J9B10 opened this issue 2 years ago • 0 comments

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.

J9B10 avatar Nov 29 '23 15:11 J9B10