jeudi 14 juillet 2016

Python: Generate a random string of given length from a select range of characters (A T G C) [duplicate]

This question already has an answer here:

I need to write a code in python that generates a random string of given length from a select range of characters (A T G C).

I have tried to use the random function however I am finding it difficult to limit the characters to just the four I want, while keeping the sequence length unlimited.




Aucun commentaire:

Enregistrer un commentaire