RandomGen: added quick-n-dirty implementation of split