samedi 26 septembre 2015

Simulating Random numbers [on hold]

INITIAL_SEED=21092015;
simulation.init(INITIAL_SEED);
simulation.setDuration(3600) ; // seconds
log=simulation.run();
// simulation ends and returns the log file
slices=36;
rMsgs=list();
for i = 0; i < slices; i + + do
aSlice=log.slice( i · 100, ( i + 1) · 100);
rMsgs.add(aSlice.extract(’Received messages’));
print mean(rMsgs)

Can someone explain any flow or possible issue?




Aucun commentaire:

Enregistrer un commentaire