Skip to content

Instantly share code, notes, and snippets.

@jonathan
Created September 21, 2009 16:05
Show Gist options
  • Save jonathan/190346 to your computer and use it in GitHub Desktop.
Save jonathan/190346 to your computer and use it in GitHub Desktop.
#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