Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #hexadecimal #character #js
ADD COMMENT
Topic
Name
1+1 =