adaptDiag
foreach
rngtools
doRNG
