add nextSubset to select a random subset
Merge branch 'master' of https://github.com/lell/libnp