How to input the number of different distances

Prescribe the number of different distances which must occur in the distance structure of a tone row. I.e. choose a number from 1 to 6.
Database on tone rows and tropes
harald.fripertinger "at" uni-graz.at
January 2, 2019