diff options
Diffstat (limited to 'std/stdmath.c')
| -rw-r--r-- | std/stdmath.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/std/stdmath.c b/std/stdmath.c new file mode 100644 index 0000000..dad292f --- /dev/null +++ b/std/stdmath.c @@ -0,0 +1,9 @@ +#include <stdio.h> +#include <stdlib.h> +#include <time.h> + + +long long randGen(long long min, long long max) { + srandom((unsigned) time(NULL)); + return random() % (max - min + 1) + min; +} |
