@chandler767 please don’t take this as a snotty/snide remark but:
What do you expect the results to be?
Over 1000 random numbers in the range of 1-59 its going to flatten out quite a bit. There should be an average of 17 per entry. (1000 / 59 = 16.9491525). Because it is random, there will be some variation. The higher the sample set, say 1,000,000 iterations, the variance will drop considerably.
At 1 million iterations, I should average 16,949 per number and sure enough, I get a 16949.1525 average. But the variance between #1 and #10 range from 17227 - 17102. The larger the sample size the closer each of the 59 values will be to the expected average.
With a sample size of 100, you get considerably more variance. I still averaged 1.69491524 (my sample size was 10% of 1000, so my average will be 10% of the 1000 sample), but my variance ran from 7 to 3 in the top 10. A variance of 7 to 3 seems less than 29 - 22, but it’s not, with the sample size being smaller there will be more variation.
What you want to do to see what I think you want to see is to remove the sort and then print out all 59 numbers. Then you will see spikes at some numbers and valleys in others. By sorting them to produce the top hits, your only going to get the most popular numbers and when run over that sample size is going to be pretty consistent.
That’s the way random numbers work.
It’s the way random distribution works. [import]uid: 19626 topic_id: 25708 reply_id: 103938[/import]