#include #include #include int main(int ac, char *av[]) { int d=10, tmp, i; int PNUM = 0; for (i=1; i] [-n] []\n", av[0]); printf(" Output random points "); printf("as lines of coordinate pairs.\n"); printf(" Default is 10.\n"); printf(" -r\t Randomize. Use getpid() as seed.\n"); printf(" -s\t Set random seed to .\n"); printf(" -n\t Write first before the random points.\n"); exit(-1); } } if (PNUM) printf("%d\n", d); for (i=1; i<=d; i++) printf("%4d %4d\n", (int) random()%10000, (int) random()%10000); }