Question: I am trying to generate a random words and push each one individually to the array, the problem is, i am getting list of words that starts from the first letter increased by one like this:

['a','ab','abc','abcd'] and so on

here is my code:

```
var word = "";
var texts = [];
var letters = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя";
for (var i = 0; i < 10; i++){
    word += letters.charAt(Math.floor(Math.random() * letters.length))
    texts.push(
        {
            "id":i,
            "name":word,
            selected: false
        }
    )
}

```

what i need is to push a complete word to the list.

Answer: 
```
var texts = [];
var letters = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя";
var wordLength = 5;
for (var i = 0; i < 10; i++){
    let word = "";
    for(var j = 0; j < wordLength; j++) {
      word += letters.charAt(Math.floor(Math.random() * letters.length));
    }
    texts.push(
        {
            "id": i,
            "name": word,
            selected: false
        }
    )
}

```

You need to use another one loop for generate a words. New word's loop each time.
```
    var word = "";
var texts = [];
var letters = "abcdefghijklmn";
for (var i = 0; i < 10; i++){
    word = letters.slice(1,i)
    texts.push(word);
}
alert(texts);

```

Oh, sorry you need it random;
how about this

```
var word = "";
var texts = [];
var letters = "abcdefghijklmn";
var l = letters.length;
var textsNum = 10;
for (var v = 0; v < textsNum; v++) {
  for (var i = 0; i < l; i++) {
    word += letters[Math.floor(Math.random() * l)];
  }
  texts.push(word);
  word = '';
}

console.dir(texts);

```