adding new function randSeqDistr()