Make Detector reusable.
Constant time pick of max(p) language.
No-barrier Random implementation.