There are many different ways you can ensure each value is picked only once. One such way could be to change the return type of the print_gumball method from void to any data type. You can have an...
Type: Posts; User: SunshineInABag
There are many different ways you can ensure each value is picked only once. One such way could be to change the return type of the print_gumball method from void to any data type. You can have an...
If you want it to keep finding random numbers, you need to place a random number generator within your while loop but the line Array[randomNumber]=999; prevents your loop from re-iterating.