Created
September 21, 2009 16:05
-
-
Save jonathan/190346 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int | |
main(int argc, char** argv) { | |
char protien[4] = "ACGT"; | |
int size = atoi(argv[1]); | |
int i = 0; | |
int pos = 0; | |
for(i; i < size; ++i) { | |
pos = rand() % 4; | |
print("%c", protien[pos]); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment