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

Randomly get up to N sequences per sample from a sequence file
agree though that it is safer to do that, but it is an invalid sample ID