DD2-monitor/funcs.c

20 lines
248 B
C
Raw Normal View History

2018-12-06 02:00:11 +11:00
/*
* funcs.c
*/
#include <stdio.h>
#include <stdlib.h>
#include "funcs.h"
2018-12-06 02:04:09 +11:00
extern int verbosity;
2018-12-06 02:00:11 +11:00
int random1000(int foo)
{
int value;
2018-12-06 02:04:09 +11:00
if (verbosity)
fprintf(stderr, "%s(%d)\n", __func__, foo);
2018-12-06 02:00:11 +11:00
value = rand() % 1000;
return value;
}