How do I identify what is not working in my arduino?

So basically the arduino works fine for the basic examples but here and there the led's for example randomly turn off and on. I ran a loop test to see if it was working and no response so I'm guessing somethings wrong but how to I specify what is wrong ? So I can change it I guess

I'm also a newbie; donĀ“t know to do that, but before your thread is moved please remember that you posted in " INSTALLATION & TROUBLESHOOTING "

If you can download a simple blink sketch and it works the basically your arduino is working correctly.

but here and there the led's for example randomly turn off and on.

That is a problem with your project and without information about what code is running and what other hardware you have attached it is impossible to say what is wrong.

Start another thread in the appropriate place, like project guidance or programming.

but its just the example that is given in the arduino program its the Blink example

Will this still happen if you open the serial monitor while the sketch is running?