a b/assets/dna/random/Random DNA Generator.py
1
from random import choice
2
3
__summary__ = "Generate a random DNA file that is 100MB"
4
__author__ = "@Nv7-GitHub (Nishant Vikramaditya)"
5
__version__ = "2.0.1"
6
7
SIZE = 100000000
8
codes = ["a", "t", "g", "c"]
9
txt = ""
10
for _ in range(0, SIZE):
11
    txt += choice(codes)
12
13
with open("files/dna/dnalong.fa", "w+") as f:
14
    f.write(txt)
15
16
print("Done.")