diff options
Diffstat (limited to 'std/stdmath.c')
| -rw-r--r-- | std/stdmath.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/std/stdmath.c b/std/stdmath.c new file mode 100644 index 0000000..c9a91c3 --- /dev/null +++ b/std/stdmath.c @@ -0,0 +1,11 @@ +#include <stdio.h> +#include <stdlib.h> +#include <time.h> + +int randGen(int min, int max) { + time_t t; + + srand((unsigned) time(&t)); + + return rand() % (max - min + 1) + min; +} |
