SOLVED I went back over it and it was really quite simple after like two days of trouble shooting i realized that i was not resetting the leds after each time the loop went around so once it turned on it had no reason to turn back off. Thank you to everyone that helped me get though this. Well this is a great start for me apparently and man do i hate seeing two of my post on the front page but i have an issue. While i just got over my last problem i finished my little program to get three little lights to blink randomly. The problem is the fact that there are not turning off as soon as the program loads into the uno all of the leds just light up and no matter what i do they stay on if i press the button or unplug it change the delay in the loop i can not figure out what i have gone wrong with in this code.

You have not put each { on a new line. You have not used Tools + Auto Format to properly indent your code. You really should do both. As an experienced programmer, you might want to revert to putting the { on the line with the statement (I do not). As a newbie, the { goes on a line by itself. Trust me, it will make your code structure a lot more obvious.

How is the button connected, to the +5V or to GND ? Do you use a resistor ?

I hope you do have resistors with those leds and they are connected to the GND.

What is the goal ?You have a sketch that (randomly) turns leds on, while a button is pressed. As long as the button is pressed, they will not turn off. Since the delay is 110ms, I guess that all three leds are on after 1 to 3 seconds.Do you want each led to blink randomly independent, or is there some special reason for the linked-together randomness ?

OK i will be uploading picture as soon as my phone uploads it but is the picture is not the best it is the same design as the 2nd project in arduino project book all that is different is the code. So the point is that it is random and when the two red leds light up they are too make the gree one light up only when the other two ones are on and just for fun i am defently using resitors https://www.google.com/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&docid=iN7jErVinohBJM&tbnid=Y6TQUDLJy89L8M:&ved=0CAUQjRw&url=http%3A%2F%2Felectronics.stackexchange.com%2Fquestions%2F56992%2Fpull-down-resistor-for-arduino-input-to-read-low-when-no-voltage-from-switch&ei=s-PAUreZE7ffsATnxoKIDQ&bvm=bv.58187178,d.eW0&psig=AFQjCNGwZkZOz9M42ki_2QwLZ8UWS36EDw&ust=1388459314627912

Why not eliminate the possibility of hardware error and replace ONE of the LED's with build in one on pin 13?" Than set the "button" to LOW in Setup - thus bypassing the button hardware in Loop. Than add some Serial prints in places, right now you are just flying blindfolded.

OK i just moved the button stuff to the setup part and i changed it to port 13 and nothing happened differently i would like to add with my first out of the book setup it worked with the book codes so i believe it is my code i managed to mess up

Ok so i have done all of those fixes that have been stated before non of them have worked i am starting to think it is either is that random is always making the value true or that the numbers do eventuly find the right number but it does not reset each time the loop comes around the way i want it to it also could be a combination fo these two things. Some more info on what it is doing the first red lights up then comes the second one imidiatly followed by the green led light it supposed to do that but it never resets and starts over.