If you had generated the number 3 it would have been OK.
Hey Maulin, I was going to try that, but I thought I could be slick and use the arraylist to do it for me. I think with that method, I wont even need to check the random number. I can just add the num1 to the end of the duck object.
Originally posted by Donald R. Cossitt:
So, just how would one 'force' a sequential number from a 'random' event (so much for random walk theory)? This would lead me to ask the question: is this approach taken the best one?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton