diff options
author | BonfaceKilz | 2021-09-27 13:59:17 +0300 |
---|---|---|
committer | GitHub | 2021-09-27 13:59:17 +0300 |
commit | 0cbb6ecde0315b7d6f021cb17406f5e5197e8a05 (patch) | |
tree | 0647dddf8b1aa4530476807bfa3a5dfd54a8119f /gn3/random.py | |
parent | 2cf220a11936125f059dc9b6a494d0f70eac068d (diff) | |
parent | a9fc9814760d205674904f8feb700eadae480fb1 (diff) | |
download | genenetwork3-0cbb6ecde0315b7d6f021cb17406f5e5197e8a05.tar.gz |
Merge pull request #37 from genenetwork/heatmap_generation
Heatmap generation
Diffstat (limited to 'gn3/random.py')
-rw-r--r-- | gn3/random.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gn3/random.py b/gn3/random.py new file mode 100644 index 0000000..f0ba574 --- /dev/null +++ b/gn3/random.py @@ -0,0 +1,11 @@ +""" +Functions to generate complex random data. +""" +import random +import string + +def random_string(length): + """Generate a random string of length `length`.""" + return "".join( + random.choices( + string.ascii_letters + string.digits, k=length)) |