fixed bug in randomization for Seq2