int x = rand()
srand(a);
int x = rand();
srand(time(NULL));
int x = rand();
srand(time(NULL));
int x = a + rand() % (b - a + 1);
double x;
srand(time(NULL));
x = rand() % (int) pow(10, precision);
x = a + (x / pow(10, precision)) * (b - a);
Рекомендуем