function [num_tires] = flatdemand

u = rand(1);
u1 = rand(1);
if u < 12/365;
    num_tires = floor(u1*100);
elseif u >= 12/365 & u < 16/365;
    num_tires = 100 + floor(u1*200);
elseif u >= 16/365 & u < 43/365;
    num_tires = 300 + floor(u1*200);
elseif u >= 43/365 & u < 86/365;
    num_tires = 500 + floor(u1*200);
elseif u >= 86/365 & u < 134/365;
    num_tires = 700 + floor(u1*200);
elseif u >= 134/365 & u < 201/365;
    num_tires = 900 + floor(u1*200);
elseif u >= 201/365 & u < 279/365;
    num_tires = 1100 + floor(u1*200);
elseif u >= 279/365 & u < 334/365;
    num_tires = 1300 + floor(u1*200);
elseif u >= 334/365 & u < 356/365;
    num_tires = 1500 + floor(u1*200);
elseif u >= 356/365 & u < 363/365;
    num_tires = 1700 + floor(u1*200);
else u >= 363/365 & u <1;
    num_tires = 1900 + floor(u1*200);
end
 
