From a4e4e31d8795fcd9f305d2c91b2f0f5970c1d02f Mon Sep 17 00:00:00 2001 From: iboyeau Date: Fri, 3 Mar 2023 11:37:51 +0100 Subject: [PATCH] random debut --- src/main/java/fr/ntr/scheduler/RoundRobin.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/ntr/scheduler/RoundRobin.java b/src/main/java/fr/ntr/scheduler/RoundRobin.java index 07b59c1..1db8218 100644 --- a/src/main/java/fr/ntr/scheduler/RoundRobin.java +++ b/src/main/java/fr/ntr/scheduler/RoundRobin.java @@ -17,8 +17,12 @@ public class RoundRobin extends Scheduler { @Override public void scheduling() { } - + + //Ts = Time Slot + //Sp =sous porteuse private void selectionUtilisateur(int Ts, int Sp, List Users) { + int random = new Random().nextInt(0, Users.size()-1); + }