Re: Decrease for loop by one

2013-01-23 Thread Milter Skyler
On Wednesday, January 23, 2013 9:59:13 PM UTC-7, Chris Angelico wrote: > On Thu, Jan 24, 2013 at 3:39 PM, Milter Skyler <> wrote: > > > I made an array to check if the random integer already exists and then I > > send it to the else statement at which point I want to decrease x by 1 so > > that

Re: Decrease for loop by one

2013-01-23 Thread Chris Angelico
On Thu, Jan 24, 2013 at 3:39 PM, Milter Skyler wrote: > I made an array to check if the random integer already exists and then I send > it to the else statement at which point I want to decrease x by 1 so that it > doesn't count as one of the loops. In other languages this works... A Python 'fo

Decrease for loop by one

2013-01-23 Thread Milter Skyler
I'm using this code with Sikuli so thats why I have click() for x in range(0,10): decimal_value = random.randint(1,12) if myList.count(decimal_value) < 1: egg = 'A%d.png' % (decimal_value) egg = wait(egg) click(egg.getCenter().offset(random.ra