Even works with array c (random 1000 numbers 1 - 1000)