random
random copied to clipboard
New Feature Request: Get HEX randomly by length and letter type.
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.