CS计算机代考程序代写 import Base.repeat

import Base.repeat

function repeat(sim::Simulation, R::Type, reps)
value = runsim(sim)
results = Results(R, sim, value, reps)
repeat(sim, results, reps)
end

function repeat(sim::Simulation, results::Results, reps)
for i = 2:reps
add(results, runsim(sim))
end

results
end