var word = [];
while (word.length < 7) {
var tmp = data[parseInt(Math.random() * data.length)];
var isStop = false;
for (var i = 0; i < word.length; i++) {
if (word[i] == tmp) {
isStop = true;
break;
}
}
if (!isStop)
word[word.length] = tmp;
}
$scope.searchWord = angular.copy(word);