LUCENE-5388: first pass at RandomChains.