2007-11-29 14:27:42 +00:00
|
|
|
/* -*- mode: C; c-basic-offset: 4 -*- */
|
2008-01-24 15:10:32 +00:00
|
|
|
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
|
2007-11-29 14:27:42 +00:00
|
|
|
|
2007-07-24 14:34:05 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
long long parsell (char *s) {
|
|
|
|
char *end;
|
|
|
|
errno=0;
|
|
|
|
long long r = strtoll(s, &end, 10);
|
|
|
|
assert(*end==0 && end!=s && errno==0);
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main (int argc, char *argv[]) {
|
|
|
|
long long i;
|
|
|
|
assert(argc==3);
|
|
|
|
long long lo=parsell(argv[1]);
|
2007-07-24 15:50:05 +00:00
|
|
|
long long count=parsell(argv[2]);
|
|
|
|
for (i=lo*count; count>0; i++, count--) {
|
|
|
|
printf("%lld\t%d\n", i*100, random());
|
2007-07-24 14:34:05 +00:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|