Generating hours from 0 to 23