ntile

Returns an integer ranging from 1 to the numBuckets, dividing the partition as equally as possible.