implemented random dna template generation.