From 94b3b47e8739119eba9ce3bc25cf1fbfd2fcb4f7 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Fri, 13 Dec 2024 14:59:03 +0100 Subject: [PATCH] no need to import random, or seed anymore --- examples/queueing/experiment.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/queueing/experiment.py b/examples/queueing/experiment.py index 0d8abbc..71e0f5d 100644 --- a/examples/queueing/experiment.py +++ b/examples/queueing/experiment.py @@ -1,5 +1,4 @@ from pypdevs.simulator import Simulator -import random # Import the model we experiment with from system import QueueSystem @@ -22,7 +21,6 @@ values = [] # Loop over different configurations for i in range(1, max_processors): # Make sure each of them simulates exactly the same workload - random.seed(1) # Set up the system procs = [speed] * i m = QueueSystem(mu=1.0/time, size=size, num=num, procs=procs) @@ -30,7 +28,7 @@ for i in range(1, max_processors): # PythonPDEVS specific setup and configuration sim = Simulator(m) sim.setClassicDEVS() - # sim.setVerbose() # <- uncomment to see what's going on + sim.setVerbose() # <- uncomment to see what's going on sim.simulate() # Gather information for output