Is it because you forgot to initialize your array?
Where are you filling your array with random numbers?
i want to initialize my array by means of filling it with random numbers?
You want the user to pick those random numbers or you want the script to pick random numbers, as in srand(time(null)) ?
the script....not the user
i have managed to figure it out. thanks darqan and seiza