Hi, how do I know what to set the range of values and how many buckets to use with bucket sort?

E.g. from Wikipedia: [29,25,3,49,9,37,21,43]

They used 5 buckets of size 10

I know it's supposed to be a distribution sort (not comparison sort), but unsure how they determined the number of buckets and size of each bucket...Any help appreciated.