src/random/randomId.js
function makeId(length = RANDOM_CHARACTER_LENGTH) {
    let text = "";
    for (let i = 0; i < length; i++) {
        text += RANDOM_CHARACTER_SOURCE.charAt(Math.floor(Math.random() * RANDOM_CHARACTER_SOURCE.length));
    }

    return text;
}
function makeId(length = RANDOM_CHARACTER_LENGTH) {
    let text = "";
    for (let i = 0; i < length; i++) {
        text += RANDOM_CHARACTER_SOURCE.charAt(Math.floor(Math.random() * RANDOM_CHARACTER_SOURCE.length));
    }

    return text;
}
function makeId ( length = RANDOM_CHARACTER_LENGTH ) { let text = "" ; for ( let i = 0 ; i < length ; i ++ ) { text += RANDOM_CHARACTER_SOURCE . charAt ( Math . floor ( Math . random ( ) * RANDOM_CHARACTER_SOURCE . length ) ) ; } return text ; }
Support generate random string with 5 characters
@returns {string}
Support generate random string with 5 characters