You've flagged your question with JavaScript, so here is a JavaScript method of finding out how many instances of a random number between 1 and 10 (inclusive) you get...
<div id="output">
<p>Calculating...</p>
</div>
<script type="text/javascript">
var range = 10;
var counts = new Array();
for (i=1; i<=range; i++) {
counts[i] = 0;
}
var ints = new Array();
for (i=0; i<100; i++) {
var randomnumber = Math.floor(Math.random()*(range+1));
ints[i] = randomnumber;
counts[randomnumber] = parseInt(counts[randomnumber]) + 1;
}
var output = "";
for (i=1; i<=range; i++) {
output += i + " - " + counts[i] + "<br>";
}
document.getElementById("output").innerHTML = output;
</script>
Update - cool - so the JavaScript tag has been removed. Forget this then!!!