Trying to generate a random number (between 0 and 9, inclusive) 1000 times and count the number of occurrences of each unique value

Hello all, I am attempting to generate a random number (between 0 and 9, inclusive) 1000 times and count the number of occurrences of each unique value, and then print how many for each instance.

I’m might be close, or way off, here’s what I got so far.

Can anyone help me with this one?
Thank you in advance

How about this:

335103-log.png

Did not count it but seems to add up at a glance. Fingers crossed.

Interesting. It’s a good start in a different direction for me. Thank you for the help.

You can do the same with a simple Int array. It’s virtually the same, but you won’t have to manually set key values, array indices are automatic =)

335110-screenshot-11.png

:smiley: I sense OP will want something more elaborate. And now we can cram in all kind of stuff in that beautiful int|int map.

Hey guys, Thanks for the help.
If feel like its a lot closer, but just missing something.
here’s where it at now