aboutsummaryrefslogtreecommitdiff
path: root/std/stdmath.c
blob: dad292fb511145226f2ee47e5e002de26de285fe (plain)
1
2
3
4
5
6
7
8
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;
}