bin/init.js
function random(array, len) {
  const size = array.length;
  const randomIndexes = crypto.randomBytes(len).toJSON().data;
  return randomIndexes.map((char) => array[char % size]).join('');
}
function random(array, len) {
  const size = array.length;
  const randomIndexes = crypto.randomBytes(len).toJSON().data;
  return randomIndexes.map((char) => array[char % size]).join('');
}
function random ( array , len ) { const size = array . length ; const randomIndexes = crypto . randomBytes ( len ) . toJSON ( ) . data ; return randomIndexes . map ( ( char ) => array [ char % size ] ) . join ( '' ) ; }
return a fixed length random string from array
@param array
@param len
@returns {string}
return a fixed length random string from array