What is the functionality of second for loop?

What is the functionality of second for loop?
0

#1

What is the functionality of second for loop ? I could not any answer. Thanks

function getRandomIntt(min, max){
	return Math.floor(Math.random() * (max - min +1)) + min;
}

function genStudData(arr){
	for(var i = 0; i <arr.length; i++){
		var num = "";
		for(var j = 1; j <= 9; j++){
			num+= Math.floor(Math.random() * 10);
		}
		num += getRandomInt(50, 100);
		arr[i] = num;
	}

#2

The second loop is to populate the “num” with nine random digits. Outside of the second loop, the num gets two more digits.