I’m currently learning a couple of programming languages, but I need to make something like a function that works as the following:
Imagine you’ve a bag where you know you’ve 5 blue balls, 2 yellow balls, 1 pink ball. And you want to take one ball out of the bag and check it’s color. So the ideia is that the array should be [blue, yellow, pink] and not [blue, blue, blue…, yellow, yellow, pink]
Is it possible?
I’m still learning the basics.