Added random sequence for Sample.