by throwaway_yy2Di · 10y ago · 0 comments
It's not quite the same problem though; the algorithm described returns samples in sequential order. They mention performance reasons for this (C-f "tape sampling"). It also has the limitation that you need to know the sample size in advance.
A MLCG will return numbers all over the place; sorting them will take an additional O(n log n) time.