API: added method for randomly getting up to N seqs per sample

Randomly get up to N sequences per sample from a sequence file
this `sorted` is not necessary but for testing convenience. will remove but can't do a commit right now