Search:

Type: Posts; User: SunshineInABag

Search: Search took 0.09 seconds.

  1. Re: Using a while loop to replace array values

    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...
  2. Re: Using a while loop to replace array values

    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.
Results 1 to 2 of 2