random generation for nucleic acids