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.
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.