DD2-monitor/funcs.c

20 lines
248 B
C
Raw Normal View History

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