Skip to content

Instantly share code, notes, and snippets.

@bradfordw
Forked from jonathan/gist:190346
Created September 21, 2009 18:28
Show Gist options
  • Select an option

  • Save bradfordw/190428 to your computer and use it in GitHub Desktop.

Select an option

Save bradfordw/190428 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int
main(int argc, char** argv) {
char protein[4] = "ACGT";
int size = atoi(argv[1]);
int i = 0;
int pos = 0;
for(i; i < size; ++i) {
pos = rand() % 4;
printf("%c", protein[pos]);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment