Answers for "random hexadecimal character js"

0

random hexadecimal character js

const genRanHex = size => [...Array(size)].map(() => Math.floor(Math.random() * 16).toString(16)).join('');

console.log(genRanHex(6));
console.log(genRanHex(12));
console.log(genRanHex(3));
Posted by: Guest on December-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language