select_combine_channel_index

madspace.select_combine_channel_index(cum_counts: collections.abc.Sequence[SupportsInt], random_index: SupportsInt) → int

select_combine_channel() over a plain cumulative-count vector, for testing.

Returns cum_counts.size() if random_index is out of range, i.e. not below the total.