in reply to Re: Drawing samples from a set
in thread Drawing samples from a set

If he creates another list of n items listing the cumulative probability to that point, then he can do a binary search. That's more general then the pre-computed "chunks".