se consideri poi MAX_VAL (valore massimo) e MIN_VAL (valore minimo), puoi fare così:
(rand () % (MAX_VAL - MIN_VAL)) + MIN_VAL
se consideri poi MAX_VAL (valore massimo) e MIN_VAL (valore minimo), puoi fare così:
(rand () % (MAX_VAL - MIN_VAL)) + MIN_VAL
Experience is what you get when you don’t get what you want