An array that contains integers from 1 - 300

I just want to have an array that has integer values of 1...300 tried this in my project but it didn't work.

let hourlyPayArray : [Int] = [1...300]