function d() {
var arrN = [];
for (var i = 0; i < 7; i++) {
arrN[i] = (Math.round(Math.random() * (300 - 100) + 100));
}
return arrN;
}
console.log(d());
function duplicateEncode(word){
let lowerCaseWord = word.toLowerCase(),
newWord = "";
for (let i = 0; i < word.length; i++) {
if (lowerCaseWord.lastIndexOf(lowerCaseWord[i]) == lowerCaseWord.indexOf(lowerCaseWord[i])) {
newWord += ")";
} else {
newWord += "(";
}
}
return newWord;
}