replaced array with random