oradomskyi / cotton

1 stars 0 forks source link

Add Flood randomizer to ThreadMaster #32

Open oradomskyi opened 2 years ago

oradomskyi commented 2 years ago

ThreadMaster is having one or more threads, each of which could be assigned with several Flood objects. Each thread iterates over Flood objects assigned to it, and I want to randomize their order on each turn, so each Flood is granted network resources but its position in a queue for these resources is different each time and ranges from 0 to n_floods-1.