Next version of JABA
[jabaws.git] / binaries / src / fasta34 / randtest.c
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <sys/time.h>
4
5 main(argc, argv)
6      int argc; char **argv;
7 {
8   int i, n, s;
9   struct timeval t;
10
11   if (argc < 2) n = 10;
12   else n = atoi(argv[1]);
13
14   gettimeofday(&t,NULL);
15   printf(" seed: %d\n",t.tv_usec);
16   srandom(t.tv_usec);
17
18   for (i=0; i< n; i++)
19     printf("%3d\n",random()%100);
20
21 }