Demux

k is not in the docstring, but "random" is; probably just got renamed along the way somewhere?