first run, fair random

This commit is contained in:
tth 2018-12-05 16:00:11 +01:00
parent 42ebb85b70
commit b022744a46
3 changed files with 24 additions and 0 deletions

View File

@ -3,10 +3,13 @@
*/
#include <stdio.h>
#include "funcs.h"
int main(int argc, char *argv[])
{
fprintf(stderr, "fake values - %s %s\n", __DATE__, __TIME__);
printf("%d\n", random1000(0));
return 0;
}

15
funcs.c
View File

@ -0,0 +1,15 @@
/*
* funcs.c
*/
#include <stdio.h>
#include <stdlib.h>
#include "funcs.h"
int random1000(int foo)
{
int value;
value = rand() % 1000;
return value;
}

View File

@ -0,0 +1,6 @@
/*
* funcs.c
*/
int random1000(int mode);