I want to make an Array of 100 elements from numbers[1,10] and then count how many of every number is in that Array. How can I do it? I have the Array with random numbers:
function random(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
for(var y=0 ; y<100 ; y++)
{
tab[y]=random(1, 10);
}
but I don't know how to search for every number.