spec generate for number