distribute - luxembourg/muxcode-clm GitHub Wiki

DISTRIBUTE()

FUNCTION: distribute(<numpoints>, <bins>[, <delim>])

Returns, as a <delim> delimited list, a random distribution of <numpoints> into an equally weighted number of <bins>. <points> must be between 0 and 1,000,000, and <bins> must be between 1 and 2,000.

Examples: > think distribute(100, 5, |) 25|16|17|22|20

Related Topics: choose, die, lrand, rand