var Array ;
function num() {
Array = [] ;
for(var i = 1 ; i < 2 ; i++) {
for(var j = 0 ; j < 4 ; j++){
var rand = Math.floor(Math.random() * 9 ) + 1 ;
Array.push(rand);
} }
console.log(Array);
}
function check() {
num();
var enter = document.getElementById('num').value ;
enter = parseInt(enter);
if (enter === Array[0] || enter === Array[1] || enter === Array[2] || enter === Array[3]) {
alert('You won !') ;}
}