20 lines
248 B
C
20 lines
248 B
C
/*
|
|
* funcs.c
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "funcs.h"
|
|
|
|
extern int verbosity;
|
|
|
|
int random1000(int foo)
|
|
{
|
|
int value;
|
|
if (verbosity)
|
|
fprintf(stderr, "%s(%d)\n", __func__, foo);
|
|
value = rand() % 1000;
|
|
return value;
|
|
}
|