>>675
(MAX-MIN)*rand()/RAND_MAX+MIN;