random problems

Hi all,
I'm quite new with Arduino and several questions popping up during my first project.

For my project I'm using an Arduino mini pro.

My random function generates always the same numbers in an array?! Even when I restart or upload the sketch again the numbers are the same!

code find attached.

forum code.txt (1.24 KB)

Unless you use a random seed, the random number generator will always repeat the same sequence.

Please remember to use code tags when you post your code.