Builds a numeric array of n and randomizes the values.