MrAnonim
CHEfan, outPut = rand()%((max - min) + 1) + min;

Sinab ko'ring))