/ Published in: C
e.g.
$ ./a.out 4 0 1762001.350586 827080.943359 1642278.102539 1674450.112305
Expand |
Embed | Plain Text
#include <stdio.h> #include <stdlib.h> #define USAGE "Usage: %s NUMBER SEED\n" int main(int argc, char ** argv) { int i, n, seed; if(argc!=3){ fprintf(stderr, USAGE, argv[0]); exit(0); } n=atoi(argv[1]); seed=atoi(argv[2]); srand(seed); return 0; }
You need to login to post a comment.
