Hello, I’m trying to write a code that follows these instructions:
There is an array with 3 elements. It should loop through the elements for a given number of times and choose one at random, then add it to another array.
In this way I would create an array (named “end” with, say, 20 elements taken from the first three (so they repeat multiple times).
It should count how many times the three elements repeat each other in the “end” array. So let say the elements are fork spoon and knife. It should say “there are x spoons, y knives ecc.”
I’m stuck with part one!
I add an