I got this code:
var counter = 0,
randoms = [],
randoms1 = [],
n;
for (n = 0; n < 5; n++) {
randoms.push(Math.floor(Math.random() * 49 + 1));
randoms1.push(Math.floor(Math.random() * 49 + 1));
}
With these 2 arrays how can I check if there is a common number in them, and this number add it to a new array?