Browse Source

first run, fair random

master
tth 2 years ago
parent
commit
b022744a46
3 changed files with 24 additions and 0 deletions
  1. +3
    -0
      fake-values.c
  2. +15
    -0
      funcs.c
  3. +6
    -0
      funcs.h

+ 3
- 0
fake-values.c 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
- 0
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;
}

+ 6
- 0
funcs.h View File

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

Loading…
Cancel
Save