'use strict';
const getRandomNumber = (min, max) => {
return Math.floor(Math.random() * (max - min)) + min;
};
const startNum = getRandomNumber(1, 100);
const progrStep = getRandomNumber(1, 10);
const progrCount = 10;
const str = [];
for (let i = startNum; i < startNum + progrCount * progrStep; i += progrStep) {
str.push(i);
}
const index = getRandomNumber(0, 9);
const value = str[index];
str[index] = '..';
console.log(str.join(' '));
function checkAnswer(input) {
if (value === input) {
return 'Correct';
}
return 'False';
}