Generate 50 Random Numbers between 1 and 10
Hi, i need to do the following:
Generate 50 Random numbers between 1 and 10. And then show how many times each of the numbers displayed.
So for example, say the number 1 displayed 8 times and number 2 displayed 4 times, i need to show:
1 was displayed 8 times.
2 was displayed 4 times
and so on...
How would i go about coding this or would someone be able to give me the code to do this please!
I know that it needs to generate 50 numbers and then assign these to an array and then select from the array how many times each of them came up, but have no idea how to do this.