index.js
function generateRandomString(length) {
	let s = "";
	let i = length;
	while (length-- > 0) {
		let c = Math.floor(Math.random() * (MAX_HEX_SYMBOL - MIN_HEX_SYMBOL + 1)) + MIN_HEX_SYMBOL;
		c = c.toString(16).toLowerCase();
		s += c;
	}
	return s;
}
function generateRandomString(length) {
	let s = "";
	let i = length;
	while (length-- > 0) {
		let c = Math.floor(Math.random() * (MAX_HEX_SYMBOL - MIN_HEX_SYMBOL + 1)) + MIN_HEX_SYMBOL;
		c = c.toString(16).toLowerCase();
		s += c;
	}
	return s;
}
function generateRandomString ( length ) { let s = "" ; let i = length ; while ( length -- > 0 ) { let c = Math . floor ( Math . random ( ) * ( MAX_HEX_SYMBOL - MIN_HEX_SYMBOL + 1 ) ) + MIN_HEX_SYMBOL ; c = c . toString ( 16 ) . toLowerCase ( ) ; s += c ; } return s ; }
Generates string, each symbol of that is either number or A..F

@param {number} length - length of string to be generated
@return {string} Random string of the required length
Generates string each symbol of that is either number or A .. F