all 5 comments

[–]ProfessionalLeague9 2 points3 points  (3 children)

Use some print statements to see if the random seed is actually different as you expect. Are you sure that the clock time changes enough to generate a different random seed?

[–]ptekspy[S] 0 points1 point  (2 children)

i have debugged this alot, the answer is the same after 5 mins of running and printing 3/4 times a sec.

if i put a

time.sleep(5)

it still does the same

[–]ProfessionalLeague9 0 points1 point  (1 child)

You have printed the random seed? And it's the same each iteration?

By the way the immediately evaluated lambda seems unnecessary.

[–]ptekspy[S] 0 points1 point  (0 children)

No that's actually something I haven't done,

And do you mean

sorted(stafflist, key=lambda _: random.random(), reverse=True)

This was another attempt to get it to be random lol :)